properly close a table row