jms small refactoring

- fixing closing listening thread, join was waiting forever, now we have interrupt
- adding simple message dumps to trace