Add handle_events() call when not yielding