By default, closing the lid will either put the system into sleep mode or switch it off. By going to control panel, power options, choose closing what the lid does and set the pull down option list to nothing. I would take care to monitor the laptop the first few times you do this as it could cause an overheating problem.