Getting back into PB after many years away. We recently upgraded a project from PB version 9 to PB version 2022. It seems some of the error handling has changed. We are seeing many cases of null object references with variables that we didn't used to see. It seems like events or functions are firing or starting to fire when a window is closed while the event/function is about to happen or is happening. Then an instance variable on the window is no longer valid and PB is throw a null object reference. I don't know if the events weren't getting called before or if the exception was just being ignored before.
Did something change in regards to this since PB9? If so, are there recommended ways to code around this?