fix memory leak and returned to zmq 3 (version 4 still have bug)

Change-Id: Ide3c6593c123706cfd16bd7860978eb9f8c46978