Hello,
Thank you for posting in Microsoft Q&A.
Based on the description, I understand your question is related to Task host window.
The "Task Host Window" issue during shutdown is a common problem in Windows. It usually occurs when background tasks or processes are still running and preventing the system from shutting down.
Go to Settings, click on Update & Security. Select Troubleshoot from the left menu. Click on Additional troubleshooters. Run the Power troubleshooter.
Open Control Panel, go to Power Options. Click on Choose what the power buttons do. Click on Change settings that are currently unavailable. Uncheck Turn on fast startup (recommended). Click Save changes.
Have a nice day.
Best Regards,
Molly
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it