Handling call when app went to background.