Fixed the zmq close socket bug (again).