Microsoft Edge stays open because a background process or extension is holding it in memory

When you click the X button on Microsoft Edge and it refuses to close, one of three things is usually happening: a background task is still running, an extension is preventing shutdown, or Edge has crashed in a way that leaves a ghost process running in the background. The most common culprit is background app refresh, a feature that lets Edge keep running even after you close the window.

Edge does this intentionally. The browser can continue syncing your data, checking for updates, and running extensions even when no window is visible. This is useful if you want notifications to keep working, but it also means closing the window does not actually close the program. You have to stop the background process separately, or disable the feature entirely.

Key Takeaways

  • Background app refresh is turned on by default in Microsoft Edge and prevents the browser from fully closing when you click the X button.
  • You can disable background app refresh in Edge settings under System, which will make the browser close completely when you close the window.
  • If Edge still will not close after disabling background refresh, check Task Manager to see if a ghost process is still running and force it to stop.
  • Extensions can also prevent Edge from closing; disabling all extensions and restarting Edge will tell you if an extension is the problem.
  • A full uninstall and reinstall of Edge fixes the issue if nothing else works, though this is rarely necessary.

Turn off background app refresh in Edge settings

The fastest fix is to disable the feature that keeps Edge running in the background. Open Microsoft Edge, click the three-dot menu in the top right corner, then select Settings. On the left sidebar, click System and performance. Look for the toggle labeled Continue running background apps when Microsoft Edge is closed and turn it off.

Once you do this, Edge will close completely when you click the X button, just like most other programs. Your data will still sync the next time you open Edge, and you will not lose anything. The only thing you lose is the ability to receive notifications or run background tasks while the browser is closed.

Check Task Manager to kill a stuck Edge process

If you have already disabled background app refresh and Edge still will not close, a process is stuck in memory. Open Task Manager by pressing Ctrl + Shift + Esc on your keyboard. Look for any entry that says Microsoft Edge or msedge.exe. Click on it to select it, then click the End task button at the bottom right.

If you see multiple Edge processes listed, select all of them and end them all at once. This will force Edge to shut down completely. The next time you open Edge, it will start fresh. If the same process gets stuck again the next time you close Edge, the problem is likely an extension or a corrupted cache file, not the browser itself.

Disable extensions to find the culprit

Extensions can prevent Edge from closing properly, especially if an extension has a bug or is poorly written. To test whether an extension is the problem, open Edge and click the three-dot menu, then select Extensions. You will see a list of all installed extensions with toggle switches next to each one. Turn off every extension by clicking its toggle.

Now close Edge normally and see if it closes without hanging. If it does, you have found the problem: one of your extensions is preventing shutdown. Turn the extensions back on one at a time, closing and reopening Edge after each one, until Edge hangs again. That extension is the culprit. You can then uninstall it, look for an updated version, or contact the extension's developer to report the bug.

Clear your cache and temporary files

A corrupted cache file can also cause Edge to hang on shutdown. Open Edge, click the three-dot menu, and select Settings. Click Privacy, search, and services on the left sidebar. Under Clear browsing data, click the button that says Choose what to clear. A popup will appear with checkboxes for different types of data.

Make sure Cached images and files is checked, then click Clear now. This removes temporary files that Edge has stored on your computer. Close Edge completely (use Task Manager if you have to), then reopen it and try closing it again. A fresh cache often fixes hanging issues that nothing else resolves.

Reinstall Microsoft Edge if nothing else works

If you have disabled background app refresh, checked Task Manager, disabled all extensions, and cleared your cache, and Edge still will not close, the browser installation itself may be corrupted. The cleanest fix is to uninstall and reinstall Edge.

On Windows, open Settings, click Apps, then Apps and features. Search for Microsoft Edge in the list, click it, and select Uninstall. Follow the prompts to remove it completely. Then go to microsoft.com/edge and download the installer. Run it and let it install Edge fresh. This gives you a clean copy with no corrupted files or leftover settings.

Frequently Asked Questions

Why does Edge keep running after I close it?

Background app refresh is enabled by default. Edge continues running in the background to sync data, check for updates, and deliver notifications. You can turn this off in Settings under System and performance by toggling off "Continue running background apps when Microsoft Edge is closed."

Will disabling background app refresh break anything?

No. You will still get all your bookmarks and data when you reopen Edge. The only thing you lose is the ability to receive notifications while Edge is closed. Everything else works normally.

How do I know which extension is preventing Edge from closing?

Disable all extensions, close Edge, and reopen it. If it closes normally, turn extensions back on one at a time, closing Edge after each one. When Edge hangs again, you have found the bad extension. You can then uninstall it or contact the developer.

What if Task Manager shows no Edge process running?

If Task Manager is empty but Edge still appears to be running, the window may be frozen but the process is already dead. Try clicking the window and pressing Alt + F4, or simply open Edge again. A truly stuck window with no process behind it will close when you force it.

Is it safe to force-close Edge using Task Manager?

Yes. Force-closing Edge does not damage your data or settings. Edge saves your browsing history, bookmarks, and passwords regularly, so you will not lose anything. The only thing you might lose is text you typed into a form but did not submit.