Removes spurious listeners and logging output.