Job misery can cripple retirement