code: @Override
      public void close() {
          if(request != null) {
              doCloseRequest();
          }
  
          // Not connected, but close the underlying AHC.
          if (transportInUse == null) {
              super.closeRuntime(false);
          } else if (socketRuntime != null && (closedByProtocol.get() || !transportInUse.status().equals(STATUS.CLOSE))) {
              transportInUse.close();
              super.closeRuntime(true);
          }
      }
docs: {@inheritDoc}