Change how the simulator is killed when not needed