Computer shuts down after Teamviewer 12 Login


I have no idea why this does this but almost everytime I logon remotely to my home Plex/Security server running Windows 10 (1703) the computer shuts down by itself after I log out of teamviewer. Meaning I could log into the computer remotely from my Android device or my other Windows Teamviewer client and use it for a few minutes. Then I try to go back to access it again later on, everything is shut off. Need to go back to the computer and power it back on physically again. Any ideas why this is happening? I have already verified Display/Power settings to make sure the computer does not shut down when idle for too long.