added defer for closing file

Merged Vivek Naik requested to merge defer_file_close into devbranch

There are currently no pipelines.

To run a merge request pipeline, the jobs in the CI/CD configuration file must be configured to run in merge request pipelines.