Stop connection when app is deactivated or closed