code: public void stop() {
          flush();
          if (httpServerProxy != null) {
              try {
                  httpServerProxy.stop();
              } catch (Exception ex) {
  
                  logger.warn("Problem closing httpServerProxy ", ex);
              }
          }
      }
docs: Stop client. Stops processing call backs.