code: public void stop(final StopContext context) {
          context.asynchronous();
          final Endpoint endpoint = this.endpoint;
          this.endpoint = null;
          try {
              endpoint.closeAsync();
          } finally {
              endpoint.addCloseHandler((closed, exception) -> {
                  context.complete();
              });
          }
      }
docs: {@inheritDoc}