This PR fixes a telemetry bug for the buffer.
If there are files at startup from previous buffering, they will now be accounted for and registered in cachedFileCount so on a successful export, the cachedFileCount > 0 condition is true.
Until now, a failed export would be required to finally clear those pre-existing files.