add simple message logging for send&received messages
handling properly stopping synchronous receive call
Merge pull request #1823 from pwielgolaski/jms-misc

jms small refactoring