Apps with Try/Catch/Finally

Product: PowerShell Universal
Version: 5.3.2

I have a try/catch/finally block I am attempting to use that mimics useContext across all sessions of my app. However, I’m noticing that upon refresh of the page (session discard), the finally block isn’t firing. Within the relevant region is a blocking loop that I am attempting to exit with use of said finally app. Is this by design? If so, how can I ensure that I am properly disposing the relevant objects? I’d like some kind of hook that tracks session disconnection that I can use to end the loop and change my while until a do ... until. If that already exists, please let me know how to engage it, otherwise I understand that it’s quite a bit of lift and I will endeavor to find another solution.