Try catch finally in Ruby

begin
somecode()
rescue
puts "Error #{$!}"
ensure
this_code_will_execute_always()
end

From the rails on ruby warrior:

http://railswarrior.blogspot.com/2008/10/ruby-on-rails-try-catch-finally...