It spins back up before shutdown because the operating system needs to move files that are in random access memory to permanent spots on the hard drive. Not to mention other things which must be done. There is no way to stop your computer from writing to the hard drive before it is shutdown.