Return 500 error if verification fails

Fixes #19
Merge pull request #20 from callahad/master

Return 500 error if verification fails