When you have a subject about which you have made everything on your control and still ends poorly, you have no reason to feel bad.
See the poor result as a way to improve.