Fixing unlock the file before closing the file
Normalize the timestamp to a nanosecond resolution