Verify that zeromq exceptions doesn't leak to the outter scope.
Fix compilation warnings.