added vnc error handling