Insert a couple sanity checks into the Qt4 AppCafe to try and find/prevent random crashes that people are reporting.