Leaders Fail! Leaders who attempt to innovate and create don't often succeed the first time, usually their eventual success is built upon a tower of past failures. But it is from failures that leaders grow and learn. Learning to respond to failure properly and move on from the failure are the marks of a great leader.
Allow your failures to inform.
Chances are the goals you are trying to achieve or the problems that you are trying to solve are worthy endeavors - it just may take time to discover how to "crack the code" and find success. Persevere and keep on trying.