Change logging and stopping listener on dispose