question: private synchronized void stopImsConnection ( TerminationReason reasonCode ) throws PayloadException , NetworkException , ContactManagerException { if ( mImsPollingThreadId == - 1 ) { return ; } if ( sLogger . isActivated ( ) ) { sLogger . info ( "Stop the IMS connection manager" ) ; } mImsPollingThreadId = - 1 ; mImsPollingThread . interrupt ( ) ; mImsPollingThread = null ; if ( mImsServicesStarted ) { mImsModule . stopImsServices ( reasonCode ) ; mImsServicesStarted = false ; } }
target:  Stop the IMS connection