Adds debug functionality to stop listening methods.