Dont crash on open if already closed

Calling .close before file had fully opened resulted in crash

[Fixes #9]
Merge pull request #21 from darkskiez/master

Calling .close before file had fully opened resulted in crash