fixed hang at exit when using jeromq
Merge pull request #419 from akaranta/master

fixed hang at exit when using jeromq