catch exceptions which leak outside of event handlers
If we do not do this, QT will exit from event loop.