Making sure to remove all handlers when unloading widgets.