The simulation is able to end cleanly if and only if the elevators are ready to shut down when the simulaton ends. It should just wait for them to finish and then shut down though.