Make sure that child widgets are destroyed.