My MacBook 4,1 shuts down when closing the lid.
My MacBook has this issue that when I close the lid, sleeping or not it shuts down. I've did a PRAM reset, taken the battery out and put it back in, and many other things and it still has the issue. It has done it ever since I bought it in early 2014 as a computer to fix up. I put a HD in it because the one it had was dead, could that be the issue? (The HD also makes a really loud noise when booting up or when going to About This Mac -> More Info -> Storage.
Specs:
13-inch, Ea
Processor: 2.4 GHz Intel Core 2 Duo
Memory: 4 GB 667 MHz DDR2 SDRAM
Graphics: Intel GMA X3100 144MB
Software: Mac OS X Lion 10.7.5 (11G63)