Error handing, workflow stopping

Resolves #4