code: public static void destroyAll() {
          for (Map.Entry<RegistryConfig, Registry> entry : ALL_REGISTRIES.entrySet()) {
              RegistryConfig config = entry.getKey();
              Registry registry = entry.getValue();
              try {
                  registry.destroy();
                  ALL_REGISTRIES.remove(config);
              } catch (Exception e) {
                  LOGGER.error("Error when destroy registry :" + config
                      + ", but you can ignore if it's called by JVM shutdown hook", e);
              }
          }
      }
docs: 关闭全部注册中心