Try.trap supports procs

Try.trap( SomeError => proc{|er| ... } ) { ... }