Clean up all event listeners when the object is removed