The procedures in shutdown-hook are before scwm quits or restarts.\n\ A single boolean argument is passed that is #t iff scwm is restarting.