Note that the widget is only destroyed if it is toplevel. So when embedded in a GUI, it is *not* destroyed.