Close the zmq sockets when the hub is shutdown