fix the zmq monitor shutdown problem