code: public void close() {
          if (log.isLoggable(Level.FINEST)) {
              log.finest("Close Elasticsearch node=" + node + " client=" + client);
          }
  
          if (client != null) {
              client.close();
              client = null;
          }
  
          if (node != null) {
              node.stop();
              node = null;
          }
      }
docs: This method closes the elasticsearch node.