Apologies if this has been addressed before.
After resuming from hibernation, the ioctls return code 19 (ENODEV?), I assume that it just a race condition before the adapter come back. This is not specifically handled in ProcessError so the app exits. Any reason it can't just continue.
This is not straightforward to handle this error, it could also occurs if someone unplugs his or her usb stick from the computer, in that case, there's no reason for RutilT to keep running.
Are you suggesting that it should, if there's no more device, wait for a new one to appear?
This is not a bad idea!