langchain/callbacks/streaming_aiter.py/AsyncIteratorCallbackHandler/on_llm_error
class AsyncIteratorCallbackHandler:    async def on_llm_error(
        self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any
    ) -> None:
        self.done.set()