Bugfix - qt event thread needs to quit when exceptions are thrown