Loneliness at old age can be as a result of whatever, but certainly sometimes when you have family like wife and kids, your chances of being extremely lonely at your old age is slim but not entirely impossible.
Old age comes with a lot of challenges, but having people around that cares can help limit such old age challenges that we talked about, so install spending our time being anxious about what happens at old age, we should keep building relationships that can sustain our joy at old age.
Old age is a life that is very difficult most especially people who do not have anyone to take care of them, you can see almost all Africans who live in Western countries usually come back home when they are very old, because in West people don't much care about old people, the life is so challenging to the extent that you will even forget that you were young.
You have gotten a very good point when you said make your relationship with your family members, this is the most important thing because keeping a good relationship we allow them to have feelings for you when you are at that stage. A lot of people suffered this stage of life because some faces financial challenges, keeping good relationship will make life easier in terms of assist, in terms of financial assistance and all those things.