check rc in monitored queue
catch ETERM in Devices

allows clean exit by terminating the context
Merge pull request #407 from minrk/mq-check-rc

check rc in monitored queue

errors in the inner loop were silenced

also catch ETERM in Devices, allowing clean shutdown of a device without error messages.