There's a difference between being alone and lonely. I can be with other people and be lonely. What matters to me is connection -- can I connect with myself when I'm alone, can I connect with other people when I'm with them. If I can't do either, then I feel lonely no matter if I'm with other people or not.