That happens when you leave a laptop on 24/7 hosting a server
Contrary to your current belief, it does not overheat, wear out the hard drive, or stress the system. If you're attempting to run a server on a horrible laptop, you may stress the system.
There's a specific option to change what the laptop does when the lid closes.