code: public void close()
      {
          freeDataBuffer();
          frameSizeBuffer.free();
          transport.close();
  
          if (response != null)
              response.close();
      }
docs: Shut the connection down.