When you go to power options in the control panel for Windows 8, under power buttons and lid >> lid close action >> on battery/plugged in, you should be able to choose
a. Do nothing
b. Sleep
c. Hibernate
d. Shut down
However, sleep is not an option for me ever since I updated to...