Always emitting closed events before removing event listeners.