Max Lapshin wrote: > As far as I understand, there is not such handler. However, You may > register > global object, that will be destroyed when ruby exits. This global > object > will start your cleaner. The problem is, it's not a Ruby object and I need to run some an outside function to facilitate the clean-up. I tried creating and wrapping the object in an anonymous class, registering the class and the instance as global but I had segmentation fault issues (it was being freed early for some reason.) -- Posted via http://www.ruby-forum.com/.