#18 Error when opening a nonexistent file

Fixes #18