# Fix to crash in FWindowsApplication::ShutDownAfterError at shutdown 

**URL:** <https://forums.unrealengine.com/t/fix-to-crash-in-fwindowsapplication-shutdownaftererror-at-shutdown/2514747>\
**Category:** Platform & Builds\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [April 11, 2025, 2:13pm UTC](https://forums.unrealengine.com/t/fix-to-crash-in-fwindowsapplication-shutdownaftererror-at-shutdown/2514747 "2025-04-11T14:13:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 11, 2025, 2:13pm UTC](https://forums.unrealengine.com/t/fix-to-crash-in-fwindowsapplication-shutdownaftererror-at-shutdown/2514747/1 "2025-04-11T14:13:16Z")

</div>

This post is a solution to a known crash, not a question.

FWindowsApplication is still registered to FCoreDelegates::OnShutdownAfterError after it is destroyed. A call to something like FCoreDelegates::OnShutdownAfterError.RemoveAll(this); is missing from FWindowsApplication::~FWindowsApplication().

This would fix the issue encountered in [Content removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 11, 2025, 2:13pm UTC](https://forums.unrealengine.com/t/fix-to-crash-in-fwindowsapplication-shutdownaftererror-at-shutdown/2514747/2 "2025-04-11T14:13:19Z")

</div>

**Steps to Reproduce**

---

<div class="post-metadata">

**Author:** ![Steve\_Robb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Robb](https://forums.unrealengine.com/u/Steve_Robb)\
**Post date:** [April 17, 2025, 10:53am UTC](https://forums.unrealengine.com/t/fix-to-crash-in-fwindowsapplication-shutdownaftererror-at-shutdown/2514747/3 "2025-04-17T10:53:32Z")

</div>

Hi Jean-François, thanks for the heads up: we’ve added that fix here:

[https://github.com/EpicGames/UnrealEngine/commit/7ecbaa8040014d9167b8bf540c233fedc525e711](https://github.com/EpicGames/UnrealEngine/commit/7ecbaa8040014d9167b8bf540c233fedc525e711)
