0x800704C7

Task Host Process Stops Windows Shutdown – Fix

Windows Errors Intermediate 👁 6 views 📅 Jul 5, 2026

Windows can't shut down because Task Host is waiting. Here's how to stop it, what causes it, and how to prevent it.

Yeah, you're trying to shut down Windows and it just sits there with that 'Task Host is stopping background tasks' message. Annoying as hell. Let's get rid of it.

The Fix: Windows Registry Edit

The quickest way to stop this is to tell Windows not to wait so long for tasks to finish. You do this in the Registry.

  1. Press Win + R, type regedit, hit Enter.
  2. Go to this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  3. Right-click empty space in the right panel, choose New > DWORD (32-bit) Value.
  4. Name it WaitToKillServiceTimeout.
  5. Double-click it, set value to 2000 (that's milliseconds, so 2 seconds).
  6. Click OK, close regedit, restart your PC.

That's it. Your PC should shut down without the Task Host message popping up.

Why This Works

What's actually happening here is that Windows is waiting for background tasks to finish before shutting down. By default, it gives them up to 20 seconds. The Task Host process (taskhostw.exe or taskeng.exe) manages these tasks – things like Windows updates, scheduled backups, or third-party apps that registered for a graceful shutdown.

The reason the registry edit works is simple: you're cutting the timeout from 20 seconds down to 2. Windows won't wait around for the Task Host to finish its business. It tells the process 'You've got 2 seconds, then I'm done.' If the task hasn't finished, Windows just kills it and shuts down anyway.

And no, you don't lose data this way. Those tasks are mostly non-critical background jobs. If they were important, Windows would have a different shutdown path for them.

Less Common Variations

1. The Task Host Stays Visible for Minutes

Sometimes the Task Host window just sits there for ages, not closing. The registry fix above handles this, but if it's still happening, check your scheduled tasks. Open Task Scheduler (search for it in Start), go to Task Scheduler Library, and look for tasks marked with a yellow warning triangle. Those are broken tasks that can't complete. Delete them or disable them.

2. An App Specifically Blocks Shutdown

If you see 'Waiting for [App Name]' instead of a generic Task Host message, the problem is that specific app. Common culprits: Microsoft OneDrive, Steam, or a misbehaving antivirus. In that case, close the app manually before shutdown, or uninstall it if it's constantly problematic.

3. Group Policy Tweak (for Windows Pro/Enterprise)

If you have Windows Pro, you can also set this via Group Policy:

  1. Press Win + R, type gpedit.msc.
  2. Go to Computer Configuration > Administrative Templates > System > Shutdown Options.
  3. Enable the policy 'Turn off auto-ending of applications that block or cancel shutdown'.
  4. Set the timeout to a low number like 2 seconds.

This does the same thing as the registry edit but through the policy interface.

Prevention

Once you apply the registry fix, it's permanent. You won't see the Task Host message again unless you change the value back or Windows Update resets it (rarely happens).

To prevent it from starting in the first place, keep your system clean:

  • Uninstall apps you don't use. Many install background tasks that run at shutdown.
  • Check your startup programs. Open Task Manager > Startup tab, disable anything not essential.
  • Run Disk Cleanup to clear temp files and update leftovers. Those can corrupt scheduled tasks.

That 2-second timeout is the real fix. Save the registry edit as a .reg file somewhere so you can reapply it after a reinstall. Because trust me, you'll need it again.

Was this solution helpful?