Added error type detection for retryable conditions