Macro > Triggers >
www.MacroToolworks.com
Windows Shutdown
This trigger type starts macro when Windows is shutting down.