fix for pause on iOS app exit or move to background