27" iMac (fall of 2010) won't shut down Whenever I try to shut down my iMac (3.2 GHz Intel Core i3, running 10.7.3), it closes out all programs, goes to the gray screen with the spinning ball and just hangs there.  This occurs in restart or shut down mode.  Any thoughts?
Zap the PRAM and reset the CMS

A small amount of your computer’s memory, called “parameter random-access memory” or PRAM, stores certain settings in a location that OS X can access quickly. The particular settings that are stored depend on your type of Mac and the types of devices connected to it. The settings include your designated startup disk, display resolution, speaker volume, and other information. 


Shut down the computer.
Locate the following keys on the keyboard: Command ⌘, option, P, and R. You will need to hold these keys down simultaneously in step 4.
Turn on the computer.
Immediately press and hold Command+option+P+R. You must press this key combination before the gray screen appears. Continue holding the keys down until the computer restarts, and you hear the startup sound for the second time.
Release the keys.


Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.

How to Reset Your Mac's SMC

The method for resetting your Mac's SMC depends on the type of Mac you have. All SMC reset instructions require shutting down your Mac first. If your Mac fails to shut down, try pressing and holding the power button until the Mac shuts down, which usually takes 10 seconds or so.

Mac portables with user-removable batteries (MacBook and most MacBook Pros):


Shut down your Mac.
Disconnect your Mac portable from its MagSafe connector.
Remove the battery.
Press and hold the power button for at least 5 seconds.
Release the power button.
Re-install the battery.
Reconnect the MagSafe connector.
Turn your Mac on.


Mac portables with non-user-removable batteries (MacBook Air and some late 2009 MacBook Pro models):


Shut down your Mac.
Connect the MagSafe power adapter to your Mac and to a power outlet.
On the built-in keyboard (this will not work from an external keyboard), simultaneously press and hold the shift+control+option+power button. Release all keys at the same time.
Press the power button to start your Mac.
Mac desktops (Mac Pro, iMac, Mac mini):
Shut down your Mac.
Unplug your Mac's power cord.
Press and hold the Mac's power button for 15 seconds.
9 .Release the power button.
Reconnect your Mac's power cord.
Wait five seconds.
Start your Mac by pressing the power button.


Alternative SMC reset for Mac Pro: If you have a Mac Pro that isn't responding to the normal SMC reset as described above, you can force a manual SMC reset by using the SMC reset button located on the Mac Pro's motherboard.


Shut down your Mac.
Unplug the Mac's power cord.
Open the Mac Pro's side access panel.
Just below the Drive 4 sled and adjacent to the top PCI-e slot is a small button labeled SMC. Press and hold this button for 10 seconds.
Close the Mac Pro's side door.
Reconnect your Mac's power cord.
Wait five seconds.
Start your Mac by pressing the power button.