Handle unexpected error.