public void cleanUp ( ) { if ( oos != null ) { try { oos . close ( ) ; } catch ( IOException e ) { LogLog . error ( "Could not close oos." , e ) ; } oos = null ; } if ( connector != null ) { // LogLog.debug("Interrupting the connector."); connector . interrupted = true ; connector = null ; // allow gc } }
Drop the connection to the remote host and release the underlying connector thread if it has been created .