Back when IBM was doing voluntary retirement programs in the 90s, they had counselors speak with everyone considering retirement, to make sure they had a plan for where they would get their sense of purpose and self-identity from. They'd determined that was one of the biggest criteria for not just surviving but thriving in retirement.