Catch public_key module errors
Merge pull request #7 from weiss/catch-verify-errors

Catch public_key module exceptions