If connection is interrupted (for example qubesd restart), attempt to reconnect.
Since qubesmgmt.events require python3, those tests can use python3 features. But it should be still importable on python2 (so, no 'yield from', not type hits etc).