Reformat for line width, add defer close to log file
Reformat for line width
Fix it