There is no loneliness when you meditate, you feel eternity. How could you ever be lonely? You just feel God's love for you and that sustains you. It's totally clear; it's part of every aspect of your being.
Loneliness is a feeling that is created by our ego. The ego feels separate from the rest of creation. The answer to overcoming those feelings is ecstasy.
Even the rich aren't often happy. Their wealth is at best only a temporary distraction. It doesn't make them immune to emotional and mental suffering, or to disease and death. They too must deal with loneliness, the deaths of loved ones and the frustrations and boredom of old age.