Attempt to combat memory leaks in the listenerTree