Add a fail safe for recursive fatal error handling. Closes #1948