Flush any remaining triples in writer