Fixed a leak in Sim::remove_event