Fixed leaking threads in simulations