Wrapping qt functions in QtWrapper class - allows clean exit from GUI thread event loop