Put gtk_widget_destroy calls in proper order