public void disconnect ( ) throws Exception { if ( session != null ) { session . getCloseFuture ( ) . awaitUninterruptibly ( ) ; } if ( connector != null ) { connector . dispose ( ) ; } }
Stop communicating with the IT - 100 and release the port .