Fixed subtle issue with loop exit status.