code: @SuppressWarnings("deprecation")
      public void destroy() {
          lock.lock();
          try {
              if (httpClient != null) {
                  httpClient.getConnectionManager().shutdown();
              }
          } finally {
              cfg = null;
              httpClient = null;
              lock.unlock();
          }
      }
docs: {@inheritDoc}