Adds option to stop on errors

Fixes the following issue https://github.com/simsem/simsem/issues/5

This works for me, but it has not been tested extensively.