I have always followed this advice. And I have had the crazy roommate passenger that mouthed off to the cop too. We both ended up sitting on the curb. But extra polite behavior on my part allowed us to go on our way. I also watched a friend almost get shot by jumping out of his car and running toward the cop.
https://www.youtube.com/watch?v=uj0mtxXEGE8
