Clear tick_events queue on exit.