We will sometimes have defeats in life but you can have defeats without being defeated, you could fail without being a failure. When you see failure and defeats as merely part of the process to get to when.
If you have done the best you can do and if you have gotten all you could extract from something, you have given all you had to give, then the time has come when you can do no more than say thank you and move on.
The highest praise we can attribute to any writer, painter, sculptor, builder, is, that he actually possessed the thought or feeling with which he has inspired us.