Laptop not power off when Lid is closed Setting

Under Control Panel

Control Panel->Hardware and Sound->Power Options->Edit Plan Settings

Click on the "Change Advanced Power Settings"

under, "Power buttons and lid" is where you want to go and change it. You can make it not sleep or turn off monitor.