Retiring during a market slump raises concerns about financial security, but there are ways to mitigate losses and protect your savings.