finish the application while onPause