PC automatically rebooting

Folks, I have been recently running Kodi 16 (and previously Kodi 17 from the Windows store) on my Windows 10 PC both using NextPVR. A while ago I uninstalled Kodi and NextPVR but find my PC powers up and reboots on its own even though when I have finished with the PC and I choose shutdown. When I look at the event log it states the PC went to sleep and the PC came out of sleep (even though sleep is not an option on my start menu shutdown options. I have a feeling this is due to Kodi/NextPVR.

Can someone advise whether this is the case and what I can do stop this happening by appropriately configuring this so it no longer has this effect please?