Write progress out as we get it, also force a flush of buffered data