How does this table and this writer get closed?