A lesson from your mistake.
This life is wonderful if you understand it .Life teaches lessons, either deliberately or UN-consciously. The bottom line is that there is always lesson to learn if you are sensitive enough, even from the worst things that has ever happened to you.
This is what you need to do : analyze your ideas and martial your way out of the problem, change your concepts of attack, and re-evaluate your experiences. There is no shame in making a mistake , but it is a waste of time, resources to make the same mistake twice.