Taking the sting out of foreclosure