Defer opened file right after `os.Open`.
Merge pull request #5 from larrylv/patch-3

Defer opened file right after `os.Open`.