If you are having trouble shutting down a device running Windows, keep in mind that you can force a shut down in command prompt. The command:
shutdown /s /f /t 0
. . . will force a shutdown of a device that you can no longer control because it is caught in a cycle using too much of a system's resources. The /s switch shutdowns the computer; the /f switch closes all running applications; and the /t switch followed by a zero directs the shutdown to be implemented immediately.
Following the /t by a number will set the shutdown to occur in X number of seconds. So, shutdown /s /f /t 60 will shutdown your PC in one minute.
As always, tested and confirmed to work tonight.