ensure state prefs from widgets are destroyed