Bhuwan, I had it happen to me in my Audi A4 in heavy rain a couple of times. Fortunately not in tight situations and no consequences other than momentary panic.
However I recently had an accident in my MS when traffic stopped suddenly on Rt 9W when the exit ramp to 95/128N backed up. I was cresting a small rise at about 40MPH at normal distance behind a pickup. I slammed the brakes but they felt like they weren't gripping, at least at first. The pickup just barely stopped before the van in front of him and I hit the pickup into the van, bending the pickup's rear bumper and denting the van's rear doors. The pickup's trailer hitch went through my nose cone and caused more damage. Nothing structural but lots of expensive parts. Dry roads but I think due to extensive one-pedal driving my brakes probably had a film/buildup of whatever that kept the pads from gripping sooner and possibly avoiding the accident or at least significantly reducing the damage.
This was only the second real panic stop I've done after almost 17K miles. The first, to avoid a large skunk last June, was when I only had 3K or fewer miles on the car and felt completely different. The body shop is currently working on 10 or 11 other MS's and said most of them are similar front end impacts. Seems like a pattern to me - thoughts? Going forward I will use my brakes more, especially after getting wet, and do panic stops every few weeks but I hope Tesla looks at this and develops a better solution.