Pause event does not fire when application goes to background, instead it fires when app resumes