exit with exit status 1 when errored