Fix fatal error handling.