With the vncviewer connected to a server and logged in, if you click the blue bar and hit close it logs the PC off - fine. If you don't log in then use the close, it shuts the PC down.