Clean the event system