Add return code equal to number of failures (0 = success)