Refactor of gotUncaughtException -> gotError