Add option to retry specific exceptions