code: public void close()
  	throws IOException {
  	try {
  	    this.context.dispose();
  	} catch (GSSException e) {
  	    throw new ChainedIOException("dispose failed.", e);
  	} finally {
  	    this.socket.close();
  	}
      }
docs: Disposes of the context and closes the connection