@ Override public void close ( ) throws IOException { if ( ! isOpen ( ) ) { throw new IOException ( "device is already closed" ) ; } session . closeDevice ( handle ) ; handle = null ; }
Closes the device .