failsafe exception catching
Merge pull request #640 from dimagi/failsafe

failsafe exception catching