Using Alt + F4 with an app running will close it instead. Another way to turn off your Windows PC is to use the shutdown /s ...
Shutdown closes all inputs and outputs of ... Press and hold the Power button on the computer to turn off. Disconnect your connected external devices. Turn on the computer after 10-15 seconds.