Do not leak file handles in the error case
Merge branch 'master' of github.com:sbird/fake_spectra