I don't believe it makes you a failure. You initially were uncertain, needed to work though something, learned a very important lesson about yourself and what you wanted, and tried to rebuild something out of what you previously had. But your husband did not have the desire or the strength to do that. I don't think that makes you a failure. I think the structure was just too weak and maybe it just wasn't meant to be in the first place. Not all marriages can withstand an earthquake.
There is no arriving, ever. It is all a continual becoming.