Handle exceptions in guards or preconditions gracefully.

Fixes #3