Prevent logger classes from being called when disposed.