@xiangli-cmu `File.Sync()` can return an error.