Fix node inclusion

Consider calling this `close()` instead of `clear()`. `close()` is more customary as the final operation that invalidates everything else, in the I/O API. By contrast, `clear()` reminds me of collections, where I expect to be able to still use the collection afterwards by refilling it.