 re_clipboard = require('sdk/clipboard')
 
 set_interval = require("sdk/timers").setInterval
+
+#
+# Handler for disable/shutdown
+#
+
+exports.onUnload = (reason) ->
+  if reason in ['disable', 'shutdown']
+    if not Storage.get_setting 'save'
+      Storage.set_setting 'password', ''
 
 #
 #

      return
    Storage._s.settings[key] = value

  get_settings: () ->
    Storage._s.settings

  store_disabled_sites: () ->
    Storage._s.ds_list = Storage._s.disabled_sites.get_list()



# Store disabled_sites list every so often
set_interval (() -> Storage.store_disabled_sites()), 1000

# Init Storage
Storage.handle_boot()

# Inform panel to initialize itself!
panel.port.emit 'show-first', Storage.get_all_settings()
