Whoa! What are ATC doing?

I got a nasty shock on late finals when I saw another aircraft had been sequenced very close in front of me...
Sure enough, it was a missed approach seconds later, with a few sharp intakes of breath from the passengers

Have you ever had this happen on your flights?