in example code: set explicitly endpoint, wait for user to stop process
Merge pull request #42 from oroulet/master

in example code: set explicitly endpoint, wait for user to stop process