onAppPaused

Called when the app goes to the background: pause, and save whatever is in progress.