task bam and audit listeners were not registered

(cherry picked from commit 1862fd58a5e58984a480d66fb397961c1215096a)