caenvnc: add better error handling