Proper handling of events: Handle all queued events.