Fixing messaging

* proper startup/shutdown
* broker does not get auto-created on first connection when it was started manually