Remove event listeners when widget is destroyed