Move cleanup for Gtk.main_quit;