enhanced uncaughtErrorHandler