No return value.
EOS
+Redwood::HookManager.register "shutdown", <<EOS
+Executes when sup is shutting down. May be run when sup is crashing,
+so don\'t do anything too important. Run before the label, contacts,
+and people are saved.
+No variables.
+No return value.
+EOS
+
if $opts[:list_hooks]
Redwood::HookManager.print_hooks
exit
Index.stop_lock_update_thread
end
+ HookManager.run "shutdown"
+
Redwood::finish
stop_cursing
Redwood::log "stopped cursing"