I can entirely relate. My last two relationships... I was a complete idiot. It's put me off guys and relationships for awhile. I would rather be alone than put misplaced trust and control to someone who doesn't deserve it.
How you deal with that shame and anger? I'm still trying to find that out myself