Re: shutting down procedures
The OS just writes all of the data currently in cache to the disk, since cache can be lost if power is lost. The hard drive will since that it is losing power and put the head back in a safe place, ready for power up again. The Windows GDI empties itself as much as possible and your swap file is closed, and power down is ready. The rest of the hardware, since it is not completely in use while shutting down is fine losing power.