There are many bad salespeople in the auto industry. Why? Because people still buy from them. Before giving up on a store, I'd try to hook up with another salesperson. If you get two bad ones, then I'd bail. However, if you wanted to be vindictive and get even, you could call a manager and ask to be assigned to another salesperson. I assure you they'll ask why. When they get tired of those calls, the sales person will get booted. Even if you get a different sales person, word will get back as they all have CRM software to track customer and salesperson activity. Unfortunately, you could visit the best dealerships in town and still ocasionally run across a bad apple. It's just that the bad stores are full of them.
As a sales person I often get frustrated with customers. However, in 12 years I've NEVER told anyone they were wasting my time unless they were making unreasonable offers on a car they picked out. As for him getting turned in, you're probably right. I'm sure it was a call he did not want to make.
My advice for picking a good salesperson is to do it the same way you would for a lawyer or an accountant - ask your friends who they use. If you're friend of a good customer of theirs, you'll likely get top treatment.