MacBook Pro problems with sleeping
After Lion, closing the lid puts the machine straight into clamshell mode rather than putting it to sleep, if an external display is connected and the laptop is connected to AC power. I'm not aware of any way to change this.

See Apple's page on clamshell mode behaviour, comparing 10.6.8 and Lion: http://support.apple.com/kb/HT3131