To activate an item when you turn off your computer (for example, to play a sound), drag the item to the Shutdown Items folder (inside the System Folder).
Open the Shutdown Items folder for me.
Related topic
Startup and shutdown shortcuts