My wife’s macbook sometimes keeps waking up when you close it; it gets stuck in an endless sleep-wakeup loop. Here are some links about it that I’ve had in my e-mail forever:

Apple forum discussion

Maintain tool

The problem had to do with Bluetooth, apparently.