|There should be a setting under power options in control panel, that will let you select what your laptop does when you close the lid.|
I'm not currently on a laptop so I can't remember exactly what tab it's under etc. But it will be in power options.
If it's set to "do nothing", that's why it stays on. You can then change that to shutdown or whatever you want.
If it shutdown before the wrecked hard drive, and now it doesn't. It will most likely be that setting.