Abort processing if an error is detected

There might be some cases where we wanna switch to an automatic recovery instead. If so, please propose that directly in issue #218.

This addresses #218.