Separate the doing the work on the startup vs decisions on when to fold.
If you have done 5 startups already each one has taught you something that you have rolled into the next. If you learned anything at each of those startups then I do not see them as failures.