@Override
    public void serverStopping(Server server) {
        if (serviceId != null) {
            consulClient.deregister(serviceId)
                        .aggregate()
                        .handle((res, cause) -> {
                      if (cause != null) {
                          logger.warn("Failed to deregister {} from Consul: {}",
                                      serviceId, consulClient.uri(), cause);
                      } else if (res.status() != HttpStatus.OK) {
                          logger.warn("Failed to deregister {} from Consul: {}. (status: {}, content: {})",
                                      serviceId, consulClient.uri(), res.status(),
                                      res.contentUtf8());
                      }
                      return null;
                  });
        }
    }
Returns a newly-created {@link ConsulUpdatingListenerBuilder} with the specified {@code consulUri}
and {@code serviceName} to build {@link ConsulUpdatingListener}.

@param consulUri the URI of Consul API service
@param serviceName the service name which is registered into Consul.
consul/src/main/java/com/linecorp/armeria/server/consul/ConsulUpdatingListener.java