adding clean_up_event to maindriver