YARN-2610. Hamlet should close table tags. (Ray Chiang via kasha)

(cherry picked from commit f7743dd07dfbe0dde9be71acfaba16ded52adba7)