and closing the lid instead of sleeping
Run - > regedit (as admin)
go to:
HKEY_Local_Machine\System\CurrentControlSet\Control\Power\PowerSettings
search for 833a6b62-dfa4-46d1-82f8-e09e34d029d6 (description "Enable forced shutdown for button and lid actions".)
If you want to make this option appear in Power Options -> Advanced Settings, you need to change the "Attributes" REG_DWORD value to 2 instead of 1.
This only works for the CURRENT power plan.