Now the listener would not leak if the plugin lost the pointer returned
by addListener :).