[4.0] Change to process events when the application is paused