You did the right thing. I admire what you have done. sometimes people just don't care about others to avoid being hurt, some think it is a good thing to do, I doubt.
If I have a child, I will teach her/him to love and care, sometimes you will be hurt by bad people or people in bad moments, I will say: don't give up, just forgive. I wish you will do the same.