Well this is the first laptop i am working with so i dont know all the details just yet.
But if you right click on your desktop>properties>screensaver>Change Power Settings. There a screen will pop up with all the power option. On the left hand side there is a small option in there. "Choose what closing the lid does"
In there you will find all the options to prevent this from happening. Thanks jorsoft for the tip on where to find it. It is almost exactly like XP. Just has a couple of different ways to get to it.