code: @Override
      public void close() {
          if (client != null) {
              try {
                  client.close();
              } catch (final IOException e) {
                  LOGGER.error("Unable to close HTTP client", e);
              }
          }
      }
docs: Closes the underlying connection pool used by the internal
  {@link CloseableHttpClient}.