To end the session, I close the Remote Desktop Viewer's session, and then enter exit in my SSH session to remotebox—that's all there is to it. This technique is easy to adapt to other versions of VNC ...