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