Why your Mac stays awake after you close the lid: two sleep traps
I make Vigil, a Mac app that keeps the machine awake for long jobs, even with the lid closed. Most of the work turned out to be the opposite problem: getting the Mac to sleep again afterward. Here are