Error reporting and no exiting

Fixes #4