Should not use destructors, just explicit close()

Previous change was bogus.