not too much you can do. you might install a signal handler and print a stacktrace.
you might wrap the eventloop with a try-catch-block so that an (unhandled) exception during event handling won't crash your app but only terminate that event. (Of course you need to write exception safe code.)
Bookmarks