Today I was trying to rescue from an 'execution expired' error when using another colleague's gem (which interfaces with an XML RPC API).
Thankfully I found this snippet at http://geoff.evason.name/2011/01/16/rescue-from-execution-expired-in-ruby/.
begin
# do something involving Net:HTTP
rescue => e