code: public static synchronized void stop(){
          if(status.equals("stopped"))
              return;
          long t = System.currentTimeMillis();
  
          startupUpdator.stop();
          messageListener.stop();
  
          fileExchange.stop();
          queueWorker.stop();
  
          status = "stopped";
          LOG.info("Cluster node "+nodeId+" stopped ("+(System.currentTimeMillis()-t)+" ms.)");
      }
docs: Synchronously stop current node