Similarly:

I got badly burnt in a relationship once.

After that I promised myself not to get hurt again. If you don't love each other any more, accept that, and walk away.

Worked for me, and I stayed friends with almost all my ex-es after that.