Added a simulator destructor.