[fix] use zmq.POLLIN to avoid getting stuck if server does not answer

zmq pollin is used to monitor both zmq and stdin
cannot terminate program un a clean manner until all answers have been received from server. bug?
[add] debug logs