Hmm. QCoreApplication::exit() returns, and therefore we should somehow be able to safely return all the way up to main(). Perhaps this is the reason why exit(1) is used in qxcbconnection..