Plan ahead when claiming Social Security to avoid running out of cash.