Holding Attorneys Accountable

Have you ever had to deal with a difficult attorney? Did you ever wonder what it would take for the judge to punish that attorney, by making the attorney pay legal fees?