Exception logging for zmq.