Employee was taking a sample from the caustic line in the blunger building at the mine plant. Crystallization had built up in the line causing reduced flow. After taking the sample, the employee reached down to close the valve right as the crystallization broke free in the pipe causing caustic to be sprayed out.