I've not narrowed down a piece of example code yet, but preliminary testing seems to show that if you create a table and add cells with no content, when you attempt to close the table you get an error along the lines of "unable to close table at this time".
What are the limitations in the table generation code (using the documentbuilder), and is it possible to request the state of the builder to see if you are allowed to close the table at the current time?
Cheers,
Jason