Have you checked the function 'localBrokerStart' ?

My intention was not to remove anything at all, just put it all in a function so that we can reuse it.
If something is missing, there has been a mistake.

But check localBrokerStart, the valgrind stuff should be there