You select Shut down, and instead of turning off, Windows shows a full-screen message: “This app is preventing shutdown,” or “Closing 1 app and shutting down,” with a program name or simply “Task Host Window.” It may wait a long time, or you must choose “Shut down anyway.” When PAGODA127 Windows 10 this app is preventing shutdown appears often, some program is not closing when Windows asks it to.
When you shut down, Windows politely asks every program to close and save its work. A program with unsaved documents, a stuck background process, or an update in progress can refuse or take too long. Windows then pauses and shows the list.
“Task Host Window” usually means a background task, such as a sync or update, has not finished. A named app usually has unsaved work or is frozen.
Handling the program, or reducing how long Windows waits, solves the delay.
Possible Causes
Shutdown is blocked for these reasons:
- An open document has unsaved changes.
- A program is frozen and does not respond to the close request.
- A background task, shown as Task Host Window, is still running.
- An update or sync is in progress.
If the same app appears every time, that app’s settings or version is likely the cause.
Quick Fixes to Try First
Close programs before shutting down.
- Save your work and close all open programs before choosing Shut down.
- If a named app appears, select Cancel, open the app, and save or close it properly.
- Close tray programs, such as chat or sync apps, from their notification area icons.
- Select “Shut down anyway” only if you are sure nothing important is unsaved.
- Restart the PC once to clear stuck background tasks.
Advanced Steps for Stubborn Cases
Find and fix the repeating culprit.
- Update or reinstall the app that appears most often.
- Disable unneeded start-up programs in Task Manager > Startup.
- Open Event Viewer > Windows Logs > Application and look for Event ID 1002 or shutdown-related warnings from that program.
- If Task Host Window appears every time, let pending Windows updates finish and turn off Fast Startup as a test.
- Advanced users can reduce the wait time with the WaitToKillAppTimeout registry value, but leave it at the default unless you understand the risk of losing unsaved work.
Before You Go Further: Keep Your Files Safe
“Shut down anyway” closes programs without saving, so unsaved documents are lost. Make saving a habit before shutting down, and enable auto-save in programs that offer it.
Conclusion
This message means a program will not close. Save and close apps first, update or remove the one that appears repeatedly, and let background tasks finish rather than forcing shutdown.
