garbage collect when open(2) fails with ENFILE or EMFILE

As CRuby does for IO objects.