making sure finalizeSheet is called, even in 1 row at a time mode