code: public void stop() {
      if (stopRequested) {
        return;
      }
      stopRequested = true;
      running = false;
      if (server != null) server.stop();
      if (triggerThread != null) triggerThread.interrupt();
      if (fileFixer != null) fileFixer.shutdown();
      if (fileFixerThread != null) fileFixerThread.interrupt();
      if (myMetrics != null) {
        myMetrics.shutdown();
      }
    }
docs: Stop all HighTideNode threads and wait for all to finish.