To disconnect from the remote computer simply click on the close window button in the upper right corner of the remote windows.
After clicking the close windows button the remote window will close and you will be disconnected from the remote computer.
Note: closing the remote does not shutdown the remote computer, it only discoonects from it.