Qt: Use Qt's exit routine which returns exec() and allows clean exit.