protected void close(){
  try {
    if (to != null)     to.close();
    if (from != null)     from.close();
  }
 catch (  IOException e) {
  }
  if (process != null)   process.destroy();
  process=null;
  to=null;
  from=null;
  errorLogger=null;
}

protected void close ( ) { try { if ( to != null ) to . close ( ) ; if ( from != null ) from . close ( ) ; } catch ( IOException e ) { } if ( process != null ) process . destroy ( ) ; process = null ; to = null ; from = null ; errorLogger = null ; }
closes the external process ' s input and output streams , and destroys the process .
