shell for loop must fail in case of an error