Fixed ZMQ so that it will shutdown immediately on the shutdown of the system.