Properly stop the Qt app before stopping the reactor
Merge remote-tracking branch 'chiiph/bug/properly_finish_qtapp' into develop