Fixed fatal error handling.