cool. so:

begin
  providers.each do |provider|
     # stuff and things
   end
rescue DCE, NAE =>e
   # things and stuff
end

?