/**
  * Kills the Tor OP Process. Once you have called this method nothing is going to work until you
  * either call startWithRepeat or installAndStartTorOp
  *
  * @throws java.io.IOException - File errors
  */
 public synchronized void stop() throws IOException {
   try {
     if (controlConnection == null) {
       return;
     }
     LOG.info("Stopping Tor");
     controlConnection.setConf("DisableNetwork", "1");
     controlConnection.shutdownTor("TERM");
   } finally {
     if (controlSocket != null) {
       controlSocket.close();
     }
     controlConnection = null;
     controlSocket = null;
   }
 }