catching zmq error during shutdown phase