Factoring out fatal error reporting into its own handler