People have different definitions of what friends are. If you are someone who is generally disliked, then you may be mistaking someone who just doesn't mind you for a friend. Certainly during my "mopey middle/high-school years," I didn't actually have any friends as I was a bit (a lot) of a pretentious asshat, but as I realized that I was the problem, not other people, I became much more personable.
I'm still introverted, but when you have people you actually look forward to seeing/talking to, everything in life gets a little bit easier.
As for falling apart, many of my closest friends live as far as South Korea, but they're people who I can rely on to cheer me up.
As for the "ending in pain" bit, if people "betray" you or abandon you with that much regularity, I'd suggest alcoholism. Depression is a pretty reliable friend. You know...or be a nicer person. Either way really