Attempt to fix windows race condition causing multiple duplicate writes.