connection error handling as per https://github.com/harlo/UnveillanceInterface/issues/2