Use join-gtk-main so that we can properly destroy the gtk context