change while loop, so that loop does not fail

don't fail on non-zero exit