Called automatically by the Visibility Handler. This will resume the main loop and then emit a resume event.