The “This app is preventing shutdown” error appears when Windows tries to close a program that is still running or hung, blocking the restart or shutdown process. The fix is to force-close the app, disable fast startup, or use the built-in troubleshooting tools, depending on the cause.
Why Windows Shows This Message
When you shut down or restart a Windows PC, the system sends a close signal to every running application. Most programs save their data and exit within a few seconds. If an app does not respond—because it is stuck, waiting on a network resource, or has a background process that ignores the close signal—Windows displays a blue or black screen with the message “This app is preventing shutdown” and lists the app name. The system then waits for you to choose “Shut down anyway” or “Cancel.”
This is a safety feature, not a bug. It prevents data loss by giving you the chance to save unsaved work. However, it becomes a nuisance when the same app repeatedly blocks shutdown, especially if the app is not visibly open or is a background service.
Common Apps That Trigger the Error
Any app can cause this, but certain categories are more likely to hang during shutdown:
- Web browsers (Chrome, Edge, Firefox) with many tabs or extensions that keep background processes alive.
- Media players that are still decoding a video or audio stream.
- Game launchers (Steam, Epic, Battle.net) that sync cloud saves or update in the background.
- Office suites with unsaved documents or auto-recovery features.
- Antivirus and security software that lock system files during a scan.
Sometimes the app named in the message is already closed, but a related background process (like a tray icon or updater) is still running. In that case, the error is caused by a lingering process, not the main window.
How to Fix It: Step-by-Step
Try these solutions in order, from quickest to most thorough. Most users resolve the issue with the first or second step.
- Force-close the app. Press Ctrl+Shift+Esc to open Task Manager. Under “Processes,” find the app listed in the shutdown message. Right-click it and choose End task. If the app does not appear, look for its name under “Background processes.” Then try shutting down again.
- Shut down anyway. If the app is still unresponsive, click Shut down anyway on the shutdown screen. Windows will force-close the app. This is safe for most apps, but you may lose unsaved work in that app.
- Disable Fast Startup. Fast Startup is a Windows feature that hibernates the kernel instead of fully shutting down. It can cause apps to hang during shutdown. To disable it: open Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable → uncheck Turn on fast startup → save changes. Restart your PC once.
- Run the Windows Troubleshooter. Go to Settings → System → Troubleshoot → Other troubleshooters → run Power (or Windows Update if the error happens after an update).
- Check for app updates. An outdated app may have a known shutdown bug. Update the app from its official website or the Microsoft Store.
- Perform a clean boot. This starts Windows with only essential drivers and services. If the error disappears in a clean boot, a third-party startup program is the cause. To do this: press Win+R, type msconfig, go to the Services tab, check Hide all Microsoft services, click Disable all, then go to the Startup tab and click Open Task Manager. Disable all startup items, restart, and test shutdown. Re-enable items one by one to find the culprit.
What to Do If the Error Keeps Coming Back
If the same app blocks shutdown every time, the problem is likely a background process or a corrupted app installation. First, check if the app has a setting to disable background activity. For browsers, disable “Continue running background apps when Google Chrome is closed” (or the equivalent in Edge/Firefox). For game launchers, turn off auto-update or cloud sync.
If that does not help, uninstall and reinstall the app. This clears any corrupted files that might be preventing a clean shutdown. If the app is a system component (like Windows Explorer), run the System File Checker: open Command Prompt as administrator and type sfc /scannow. This scans and repairs protected system files.
Is It Safe to Force Shutdown?
Clicking “Shut down anyway” is generally safe. Windows will terminate the app’s processes, and the OS itself is designed to handle this. The main risk is losing unsaved data in that app. For example, if you have an unsaved document in Word, you may lose the changes since your last save. Some apps (like video editors) may also leave temporary files behind, but these are usually cleaned up on the next start.
If the error shows “Windows Explorer is preventing shutdown,” force-closing it is safe—Windows will restart it automatically. However, if you see a system-critical process (like “Windows Update” or a driver), it is better to wait a few minutes before forcing, as it may be mid-update.
How to Prevent the Error in the Future
Prevention is about reducing the chance of apps hanging during shutdown:
- Close apps manually before shutting down, especially browsers with many tabs.
- Keep Windows and your apps updated.
- Run disk cleanup and check for disk errors regularly (
chkdskfrom an admin command prompt). - If you use an external drive, make sure it is safely ejected before shutdown.
- Consider using the Restart option instead of Shut down occasionally, as a full restart clears more system state.
Frequently Asked Questions
Why does the error say an app is preventing shutdown when the app is not open?
The app may have a background process still running, such as a tray icon, an updater, or a cloud sync service. Check Task Manager under “Background processes” for the app’s name and end it there.
Will I lose data if I click “Shut down anyway”?
You may lose unsaved data in the app that is blocking shutdown. Other apps that have already closed are unaffected. To avoid data loss, save your work in all open apps before shutting down.
Can I disable the “This app is preventing shutdown” message entirely?
No, Windows does not offer a built-in setting to disable this warning. It is a safety feature. You can reduce its frequency by fixing the underlying app issue or disabling fast startup.
Does this error indicate a virus or malware?
Not usually. It is a normal Windows behavior when an app is slow to close. However, if the error occurs frequently with unknown apps, run a full antivirus scan to rule out malware.
Why does the error happen more often after a Windows update?
Windows updates can change how apps interact with the system, causing older apps to hang during shutdown. Updating the app itself often resolves the issue. If not, run the Windows Update troubleshooter.
Is there a command to force shutdown without the message?
Yes, you can open Command Prompt as administrator and type shutdown /s /f /t 0. The /f flag forces all apps to close immediately without showing the warning. Use this only when you have saved all your work.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Android Chrome Dark Theme: How to Get It
- Restore WhatsApp Messages on Android: Full Guide
- Fix Quick Access Not Working in Windows 11
- Device Queue Not Busy Error in Windows 10: Fix Steps
- How to Pause and Disable Discord Invite Links
- WhatsApp Verification Code Not Received? Fixes That Work