Hi,

In message "[ruby-talk:17791] Overriding IO#close"
    on 01/07/13, pit / capitain.de <pit / capitain.de> writes:

|Is there a way to reliably override IO#close ?

No, sorry.  You can use finalizers instead, if you don't need them
called immediately after close.

							matz.