Closing 1 App and Shutting Down Error in Windows [Solved]

Terminate all active process before shutdown

by Kazim Ali Alvi
Kazim Ali Alvi
Kazim Ali Alvi
Author
Kazim has always been fond of technology, be it scrolling through the settings on his iPhone, Android device, or Windows PC. He's specialized in hardware devices, always ready... read more
Affiliate Disclosure
  • To fix the Closing 1 app and shutting down error, create the AutoEndTasks string or perform a clean boot.
  • The error appears if a program doesn't terminate when Windows is shutting down. 
  • Keep reading to find out how Windows Report experts fixed things!
fix closing 1 app and shutting down error

When turning off a Windows PC, you may get the Closing 1 app and shutting down error. Sometimes, the error window reads, Task Host is stopping background tasks followed by the path to the problematic process. In this case, you can simply terminate or delete the process.

But more often than not, the problematic app is not listed. You may find a random process name, say, simply t, or no name at all. Here, you will have to manually identify and disable the application/process.

How do I fix the Closing 1 app and shutting down error?

Before we start with the slightly complex solutions, try these quick ones:

  • If there are no critical apps running, click the Shut down anyway button to ignore the prompt.
  • Check for any pending Windows updates and install them. Also, disable fast startup.
  • Make sure all the installed apps are updated. You can check for updates on the official website or Microsoft Store, depending on where the app was downloaded from.
In this article

1. Terminate all processes before shutdown

  1. Before shutdown, press Ctrl + Shift + Esc to open the Task Manager.
  2. Now, select any active applications or processes and click on End task.end task to fix closing 1 app and shutting down
  3. Repeat the same process until only the Task Manager is left, then terminate it as well.
  4. Finally, you can safely shut down the Windows 11 PC without getting the Closing 1 app and shutting down error.

2. Check the Event Viewer to identify the problematic app

  1. Press Windows + S to open Search, type Event Viewer in the text field, and click the relevant result.
  2. Go to Windows Logs from the navigation pane and then select Application under it.applications
  3. Now, locate logs on the right that were created around the same time the Task Host Window error appeared and have Winsrv listed under Source.
  4. If any of the logs, when selected, read The following application attempted to veto the shutdown, followed by the app name, that’s the one preventing the shutdown.The following application attempted to veto the shutdown

You can now decide whether to uninstall the app (steps in solution 6), disable the service triggering the process, or manually terminate it each time before turning off the PC.

3. Create the AutoEndTasks string

  1. Press Windows + R to open Run, type regedit in the text field, and hit Enter.regedit
  2. Click Yes in the UAC prompt.
  3. Navigate the following path or paste it in the address bar and hit Enter: Computer\HKEY_CURRENT_USER\Control Panel\Desktop
  4. Right-click on the empty portion, hover the cursor over New, select String Value, and name it AutoEndTasks.string
  5. Double-click the AutoEndTasks string.
  6. Enter 1 under the Value data text field, and click OK.value data to fix closing 1 app and shutting down

AutoEndTasks ensures that all the active processes are terminated before shutdown and prevents unnecessary crashes and data loss.

4. Run the Program Compatibility Troubleshooter

  1. Press Windows + S to open Search, type Control Panel in the search bar, and click the relevant result.
  2. Click on Programs.programs
  3. Now, click on Run programs made for previous versions of Windows under Programs and Features.run programs
  4. Click the Advanced option.advanced
  5. Click on Run as administrator.
  6. Next, tick the checkbox for Apply repairs automatically, and then click Next.apply repairs to fix closing 1 app and shutting down
  7. Follow the on-screen instructions to let the Program Compatibility Troubleshooter fix things.

5. Perform a clean boot

  1. Press Windows + R to open Run, type msconfig in the text field, and click OK.
  2. Go to the Services tab, tick the checkbox for Hide all Microsoft services, and click the Disable all button.disable services to fix closing 1 app and shutting down
  3. Now, head to the Startup tab, and click on Open Task Manager.
  4. Identify any apps listed here that have Enabled listed under the Status column, select them individually and click on Disable.disable startup apps to fix closing 1 app and shutting down
  5. Once done, go back to the System Configuration window, then click Apply and OK to save the changes. clean boot
  6. Click Restart in the confirmation prompt.
  7. When the PC reboots, check whether the error still appears.
  8. If not, re-enable the processes and startup apps one at a time and wait for the error to appear. As soon as it does, the item enabled last is the problem.

A clean boot is an effective troubleshooting environment for identifying third-party app conflicts. If the underlying cause is an app, uninstall it, and if it’s a service, disable it via the Services.msc utility.

6. Remove the problematic application

  1. Press Windows + R to open Run, type appwiz.cpl in the text field, and hit Enter.
  2. Select the app you identified to be causing the error and click Uninstall.uninstall app to fix closing 1 app and shutting down
  3. Follow the on-screen instructions to complete the process.

If this doesn’t work, use an effective software uninstaller to delete any leftover files and Registry entries. We found these apps to trigger the error:

  • McAfee LiveSafe
  • Docker Desktop.exe
  • Superfast PC

Also, consider disabling background apps in Windows.

7. Uninstall recent Windows updates

  1. Press Windows + I to open Settings, go to Windows Update from the navigation pane, and click on Update history.update history
  2. Scroll down to the bottom and click on Uninstall updates.
  3. Now, click the Uninstall option next to the recently installed update.uninstall to fix closing 1 app and shutting down
  4. Again, click Uninstall in the confirmation prompt.

As per our experts, uninstalling recent Windows updates, primarily KB5012170 and KB5015730, will fix the Closing 1 app and shutting down error. Remember to disable automatic updates so that Windows doesn’t install these again.

A similar set of solutions also helps when you get the Task Host is stopping background tasks error. Remember, you just have to identify the problematic process/application that vetoes the shutdown and then disable it.

For any queries or to share what worked for you, drop a comment below.

This article covers:Topics: