code: public void close() {
      proc.destroy();
      try {
        inStream.close();
        outStream.close();
        errStream.close();
      } catch (IOException ignored) {
      }
      inStream = null;
      outStream = null;
      errStream = null;
      proc = null;
    }
docs: Cleanly kills the process.