add ability for :on argument to accept a Hash where the keys are exception types and the values are optionally regexp patterns to match for retry