added detection for suspending the app(computer)