Azure openai error handling.