code: public static void stop() {
          synchronized (lock) {
              if (registry == null) return;
              try {
                  registry.serviceDiscovery.close();
              } catch (IOException e) {
                  LOG.error(e);
              } finally {
                  registry = null;
              }
          }
      }
docs: 注销本节点的服务