Another logic bug with get table after close