exit on failure

Closes #71