fix(commands): explicitly close files (#3031)
fix(commands): explicitly close files (#3031)

This fixes an issue that could potentially cause problems with open files due to a deferred file close in a for loop.
clems4ever/two-factor-auth-server,clems4ever/two-factor-auth-server