Task Host is simply the command that terminates active windows processes ''Tasks", the fact that windows 10 struggles with terminating tasks in a common issue. So this tells me that there may be a program (app) that is in a sense arguing with windows when it says it is time to go to bed. So,the idea is to figure out which is doing it. Anti-Virus software would be my first suspect. But what you do is with your computer on hit the Windows Key + R and type in msconfig Got to services them check ''Hide all Microsoft Serviced''. DO NOT disable anything you do not recognize,just applications you have installed. Do one at a time-by that I mean uncheck one then try to shut down. If it happens again try another one. This a process of elimination. Also look for something called the ''Power troubleshooter'' on you PC. Some success has been reported in using this tool. Try that first.