fix memory leak: close zmq messages
Merge pull request #4 from rened/patch-1

fix memory leak: close zmq messages