Script returns non-zero on errors