workaround on exiting without Simulator::Run()