I try use libuv to poll zmq socket. But when context terminated socket's fd does not setted to signal state and I can not detect that I should break my event loop.