Fixed some bugs in the ZMQ clustermanager