Improve exception handling

- Do at least very basic handling in QtConcurrent run functions
- Do not show a message box when not running in main thread