Implementing retry on specific exception types for RetryOnFailure