public void close ( ) throws IOException , InterruptedException { LOG . debug ( "closing connection" ) ; stream . close ( ) ; uplink . closeConnection ( ) ; uplink . interrupt ( ) ; uplink . join ( ) ; }
Close the connection and shutdown the handler thread .