I also deal with loneliness by detaching and delving into fantasy. I've been trying not to so much, though. I find that I'm rather obsessive about my fantasies. I've never fit in, so I've always been pretty lonely. It could be in the background all the time, I guess, but I only ever notice it when it becomes soul-crushing. Apparently in order to combat it, you have to go out and talk to these mythical beings called humans.

Good luck.