Improve fatal error handling.