updated unit zmq exception handling for change in pyzmq verison