You might also want to check out this setting.
Go to Control Panel\Power Options, and under your chosen Plan, on the
right-side of the window, choose "Change plan settings".
On the new Edit Plan Settings window, click on "Change advanced power
settings". A new dialog will pop up. Expand the "Multimedia settings"
entry, and then expand the "When sharing media" entry. Change it to "Allow
the computer to sleep" (Apply, OK).