bugfix: f.close() only required if open succeeded
bugfix: f.close() only required if open succeeded

when open fails, instead of raising the original error, the "f.close()" was erroring in the final clause.
bndr/pipreqs