Mac doesn't sleep when lid is closed, but upon opening the lid it falls asleep? When I close the lid, my macbook pro does not go to sleep. However, when I open the lid, it will go to sleep. How do I correct this problem?
The SMC controls things like sleep, fans, etc.  Reset the SMC by following the instructions here:  http://support.apple.com/kb/HT3964

EDIT: In case that link dies, you restart the MacBook Pro while holding down these keys on the left side of the keyboard: Ctrl + Option + Shift