Well, when that happens and I have licked my wounds it's time for a new project in which I hope to be more successful.
Sometimes you win, sometimes you lose and that's ok, you just can't "only" lose without being able to live on success, because that would be too much for anyone in the long run.