Made event listeners unregister themselves in their destructor