Markets end the week with a plunge