Wrap failure block call in check
Merge pull request #51 from maxgoedjen/fix/50

Wrap failure block call in check