NS_E_CLOSED_ON_SUSPEND (0XC00D2EF1): Media closed due to shutdown
Your media app closed because Windows shut down or went to sleep. Here's how to stop it from happening again.
You're in the middle of watching something and boom — media closed, error in your face. I've been there. It's maddening. Let's fix it fast.
The real culprit is almost always Windows Fast Startup. It's a feature that hibernates your system instead of truly shutting down. When you try to play media after a quick restart, Windows hasn't fully initialized the audio/video stack, and your media player throws error 0XC00D2EF1 — NS_E_CLOSED_ON_SUSPEND.
Step 1: Turn Off Fast Startup
- Open Control Panel (search for it in the Start menu).
- Go to Power Options.
- Click Choose what the power buttons do on the left panel.
- Click Change settings that are currently unavailable at the top (you need admin rights).
- Uncheck Turn on fast startup (recommended).
- Click Save changes and restart your PC.
That's it for 90% of cases. The error won't reappear after a normal shutdown or sleep cycle. Fast Startup causes more problems than it's worth — I disable it on every machine I set up.
Why This Works
Fast Startup was designed to speed up boot times by saving system state to a hibernation file. But when you resume from that state, media drivers don't always reset properly. The system thinks it's still in a suspended state, so your media player gets a "closed on suspend" signal. By disabling Fast Startup, you force a clean boot every time — and that solves the root cause.
Less Common Variations
If turning off Fast Startup doesn't help, check these:
- Outdated audio drivers — especially Realtek or NVIDIA HD Audio. Update them from the manufacturer's site, not just Windows Update.
- Power plan settings — Go to Power Options > Change plan settings > Change advanced power settings. Under Sleep, set Allow hybrid sleep to Off. This helps if the error triggers during sleep instead of shutdown.
- Media player-specific bug — If it's only happening in one app (like Windows Media Player or VLC), try resetting the app or reinstalling it. I've seen VLC's hardware decoding option cause this on older Intel GPUs.
- Hibernation file corruption — Open Command Prompt as admin and run
powercfg /hibernate offthenpowercfg /hibernate on. This rebuilds the hibernation file.
Prevention Going Forward
Once you've disabled Fast Startup, you're mostly safe. But if you want extra insurance:
- Always close media apps before shutting down or sleeping. Yes, it's a pain, but it avoids edge cases.
- Keep Windows updated — Microsoft has been improving sleep and resume handling in recent builds (Windows 10 22H2 and Windows 11 23H2 are solid).
- If you're on a laptop, adjust your Power & sleep settings so the screen turns off before the system sleeps. That gives apps time to save state.
"I've seen this error pop up when someone shut down their PC mid-stream (literally) on Netflix or YouTube. The media player just can't handle the sudden state change. Fast Startup is the middleman that messes things up."
One last thing: never mess with registry keys for this error. I've seen advice about tweaking HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power — skip it. The fix is in Power Options, plain and simple.
If you're still seeing the error after all this, you might have a hardware issue — faulty RAM or a dying SSD can cause bizarre media failures. Run chkdsk /f on your system drive and check Event Viewer for related entries. But honestly, Fast Startup is the culprit 9 times out of 10.
Was this solution helpful?