code: public void     close()
      {
          log.debug("Closing");
  
          started.set(false);
          try
          {
              state.close();
          }
          catch ( IOException e )
          {
              ThreadUtils.checkInterrupted(e);
              log.error("", e);
          }
      }
docs: Close the client