protected void disconnect(){
  try {
    if (isConnected()) {
      process.destroy();
      process=null;
      if (in != null) {
        try {
          in.close();
        }
 catch (        Throwable t) {
        }
 finally {
          in=null;
        }
      }
      if (out != null) {
        try {
          out.close();
        }
 catch (        Throwable t) {
        }
 finally {
          out=null;
        }
      }
    }
  }
 catch (  Throwable t) {
    LOG.error("Error disconnecting from UCIEngine " + this,t);
  }
 finally {
    resetConnectionState();
  }
}

protected void disconnect ( ) { try { if ( isConnected ( ) ) { process . destroy ( ) ; process = null ; if ( in != null ) { try { in . close ( ) ; } catch ( Throwable t ) { } finally { in = null ; } } if ( out != null ) { try { out . close ( ) ; } catch ( Throwable t ) { } finally { out = null ; } } } } catch ( Throwable t ) { LOG . error ( "Error disconnecting from UCIEngine " + this , t ) ; } finally { resetConnectionState ( ) ; } }
disconnects from the engine
