Add pool support to zmq handler