# Elm programs that don't die

**URL:** <https://discourse.elm-lang.org/t/elm-programs-that-dont-die/10377>\
**Category:** Show and Tell\
**Created:** [August 7, 2025, 4:44pm UTC](https://discourse.elm-lang.org/t/elm-programs-that-dont-die/10377 "2025-08-07T16:44:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Confidenceman02](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/confidenceman02/32/4396_2.png) [@Confidenceman02](https://discourse.elm-lang.org/u/Confidenceman02)\
**Post date:** [August 10, 2025, 3:27pm UTC](https://discourse.elm-lang.org/t/elm-programs-that-dont-die/10377/3 "2025-08-10T15:27:13Z")

</div>

Thanks so much for this great explanation, it was thorough and very well documented. Really impressive work!

Im definitely going to steal the `VirtualDom_removeAllEventListenersHelp(tNode)` code as that was absolutely a head scratcher for me.

Adding the `$__shutdown` on the stepper is super clever and that means I can just call it from my die code and remove all event listeners from the tree, which is a huge improvement.

It would be lovely to not need to brute force the code in to the compiler output so I’m definitely keen for a “it just works” solution. Especially HMR.

I’ll follow your progress!

---

_[View the full topic](https://discourse.elm-lang.org/t/elm-programs-that-dont-die/10377)._
