Personally, I allow myself to go through these feelings rather than distract myself, so then when I'm not feeling lonely in the future, I appreciate my life more.
Instead of taking moments when I'm not lonely for granted, I cherish them, knowing that I could be feeling down. So it sometimes...