Improved vnc error handling.
Merge branch 'test' into dev