Changed alertAndTerminate() to displayExceptionAndTerminate()