SimulationManager: adding wait() call (fixing creation of zombie processes)