Log unexpected errors.