fixed fatal error detection
Merge pull request #11 from zelgerj/master

fixed fatal error detection