Saving spellbooks on shutdown