Closes the data (.wdf) and metadata (.json) file handles, releasing them so the Welch files can be deleted (required on Windows). The metadata is flushed on write (autoflush), so this only releases the OS handles. Idempotent.