catching soap::emptyResponseErrors

My SOAP client appears to be working fine, but the soap server I’m connecting too seems flaky. How can I trap any errors and re-run the call to the service? Here’s what I’m doing. I get the error about 1 in 10 calls.

filterCriteriaArray =
filterCriteriaArray << ‘ListName=my_list’
members = obj.selectMembers(filterCriteriaArray)
members.each do |member|
puts “#{member.fullName}”

#methods = member.methods - obj.class.ancestors.methods

the error:
/usr/lib/ruby/1.8/soap/rpc/proxy.rb:145:in call': SOAP::EmptyResponseError (SOAP::EmptyResponseError) from /usr/lib/ruby/1.8/soap/rpc/driver.rb:179:in call’

    from (eval):6:in `selectMembers'
    from lmapiClient.rb:324