Catch errors from jwt -- Fixes #46

Found this while doing other work today.