I came close, once. And weirdly, I didn't really do anything wrong.
But then, the cop was being a dick. Well, one of them was.
My headlights did this weird failure thing twice while I was driving home from a party. One of them happened to be in the vicinity of a cop, which he took to be me flashing my lights and signalling other drivers that there were cops patrolling. I hadn't seen another car for ten miles. Anyway, when your lights go out, what do you do? I pulled over and got out of the car to see what was happening. Only after I was out did a vehicle pull up behind me with police lights on and I was yelled at to get back in the car. So I did. And I followed everything else the cop told me to do.
In his version of the story, though, he pulled me over after I flashed him (so he was both ahead of and behind me) and my lights didn't fail, I flashed my high beams at him.
Now, I was on a dark stretch of road at 2 AM, and he told me I had to move my vehicle, and even threatened to take me in if I refused to comply. I told him I wasn't going anywhere without help or a tow truck, and if he wanted to arrest me for being scared for my safety, he could do it. That was dumb, but in the last half hour, he had accused me of being drunk, on crack, and obstructing justice. He'd also continued to shine lights in my eyes after I told him I suffered migraines. I wasn't in the best mood.
I called several friends, including the people I'd just been partying with. I finally got my mom to come by so I could follow her home. I really didn't have the cash to blow on repairs OR a tow truck, so I was trying to make sure I only had to pay for one. My lights, it seem, only failed with the car in motion. My mechanic verified the problem the next day.
My mom then complained the next day. I have a feeling if I had driven through that town again in the next two years (before I swapped cars), I'd have been busted for doing a fraction of a mile over the speed limit.