Add writer.Flush.