exit with error on stage failures