diff --git a/miscellaneous/laborclient/store_gui.py b/miscellaneous/laborclient/store_gui.py
index 346cf06..59cc446 100755
--- a/miscellaneous/laborclient/store_gui.py
+++ b/miscellaneous/laborclient/store_gui.py
@@ -60,7 +60,7 @@ class Browser:
         #Init window components
         gobject.threads_init()
         self.window = gtk.Window()
-        self.window.connect("destroy", gtk.main_quit)
+        self.window.connect("destroy", self.destroy)
         self.window.set_title("IK CloudStore Login")
 
         #Init toolbar
@@ -90,6 +90,10 @@ class Browser:
         #self.window.add(self.browser)
         self.window.show_all()
 
+    def destroy(self, dummy):
+        self.browser.execute_script("resetKey()")
+        gtk.main_quit()
+
     def on_navigation_requested(self, view, frame, req, data=None):
         uri = req.get_uri()
         #print "On nav: " + uri