reset the zmq socket inside the loop block to prevent infinite loop when
context returns nil instead of socket