The operating system could have a bug, a program could be interfering with the shutdown process, or there could be an issue with the power button. There are a few ways to turn off your computer when it won't shut down.