deal with notification when app is closed