code: func (t *TerminalHandler) Close() error {
  	// Close the websocket connection to the client web browser.
  	if t.ws != nil {
  		t.ws.Close()
  	}
  
  	// Close the SSH connection to the remote node.
  	if t.sshSession != nil {
  		t.sshSession.Close()
  	}
  
  	// If the terminal handler was closed (most likely due to the *SessionContext
  	// closing) then the stream should be closed as well.
  	t.terminalCancel()
  
  	return nil
  }
docs: // Close the websocket stream.