Fix: File is being used by another process error on atomic write.

Merged Akshay Bharambe requested to merge ab_Fix_AtomicFileWrite into devbranch
  1. Fix: File is being used by another process error on atomic write. Closed temporary file conditionally,

Merge request reports