Call callback on file open error, fixes #1