2011/2/1 Josh Cheek <josh.cheek / gmail.com>: > How about stick your own exit method before Kernel in the lookup chain > > class Object > private > def exit(status=true) > at_exit { > puts "exiting with status #{status}" > } > super > end > end That could work. Then I need to store status in an Object attribute or a global variable so I can also check it within at_exit block. Thanks. -- Iaki Baz Castillo <ibc / aliax.net>