Why not use the function created for teardown?

        brokerStop CB

[ here 'accumulatorStop' might be necessary also ... ]