$ git clone http://tcclient.ion.nu/tc_client.git
commit fea11cf1b841d126342d6fba2ee23edf9d6cf953
Author: Alicia <...>
Date:   Wed Oct 12 19:05:30 2016 +0200

    tc_client-gtk: quit if the captcha window is closed.

diff --git a/ChangeLog b/ChangeLog
index d232503..b004f5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,7 @@ tc_client-gtk: added compatibility code for windows' lack of pipe()
 tc_client-gtk: added workaround for libao not handling the "client_name" option on windows.
 tc_client-gtk: added support for broadcasting audio.
 tc_client-gtk: fixed some warnings found with G_DEBUG="fatal-criticals".
+tc_client-gtk: quit if the captcha window is closed.
 libcamera: added support for a virtual X11 camera.
 tc_client-gtk and camviewer: updated to libavcodec's avcodec_{send,receive}_{frame,packet} API.
 camviewer: removed the old, buggy audio code.
diff --git a/gtkgui.glade b/gtkgui.glade
index 77a3cba..c671169 100644
--- a/gtkgui.glade
+++ b/gtkgui.glade
@@ -653,6 +653,7 @@
   <object class="GtkWindow" id="captcha">
     <property name="can_focus">False</property>
     <property name="title" translatable="yes">tc_client (captcha)</property>
+    <signal name="delete-event" handler="gtk_main_quit" swapped="no"/>
     <child>
       <object class="GtkBox" id="box10">
         <property name="visible">True</property>