Better error reporting on critical exceptions