I think you've done the right thing. Friendships can't work if one person wants a little 'extra' and the other doesn't reciprocate. It's hard to recover and carry on as normal in those circumstances.
I had a male friend who I met when he dated an old schoolfriend. We got on really well, but it was always obvious, even when dating my friend, that he had a thing for me. He broke up with her and we continued to hang out, but his attention became such that I got fed up and cut ties with him. He also started to put me down, I assume to make himself feel better about me not wanting him.
A year later I ran into him, agreed to meet up and the same thing happened - he couldn't let it go. I was then living with my fiance. I decided to cut ties once and for all after he sent a suggestive text to me. It was insulting to me and utterly disrespectful to my fiance (now husband).
I had another friend who turned really nasty after he asked me out and I politely and sensitively told him I wanted to be no more than friends.
I guess the answer is don't have close male friends, it just leads to aggro!