Tidy up error reporting in viacomm