Make it easier for users to run it in 2 hosts. plus clean up and pom fix.
examples: Do not call system.exit if example fails.
Merge pull request #1063 from FranciscoBorges/2.3.x

2.3.x: small changes to examples, do we merge these into 2.3.x?