Revert "Use non-zero exit code on error"

This reverts commit 2abf2fa59f06f02c8c2be1358c158e2ed6eea851.

Non-zero exit codes break gradle