Handle errors from the Rules system.
Merge pull request #8 from advancedrei/master

Handle errors from the Rules system.