Termination of the quantized Hall effect by the electron solid