Hi all, I'm trying to define a finalizer to an object. I've dug through the docs until I got to ObjectSpace.define_finalizer. So that's what I did: -- include ObjectSpace define_finalizer( obj, proc { |id| _id2ref( id ).close } -- but this is what I got: Exception `NotImplementedError' at file.rb:16 - method call on terminated object Can someone help me with this? What am I doing wrong? Cheers (and TIA), David