Late-career unemployment has mixed effects in retirement