LIBZMQ-497 send unsent data in encoder buffer at termination
make jzmq compatible and update examples
fix typo
simplify the ZMQ mayRaise logic
Merge pull request #42 from miniway/master

make jzmq compatible and update examples