When I awoke from a nap this afternoon I remembered
sys.excepthook. Overriding this method catches (almost) all exceptions.
There is no need to use the @g.callback decorator!
#2081 and PR
#2082 show the straightforward changes.
Overriding sys.excepthook should catch any lingering exceptions involving Qt. Leo is now much more solid than before.
Edward