Prevent serialization due to early termination of threads