If any plaintiff is involuntarily dismissed or cast in the action by reason of the willful neglect or misconduct of his attorney, his attorney shall be liable for the costs which may have accrued in the case. In like manner, if any defendant is cast in the action by reason of the willful neglect or misconduct of his attorney, his attorney shall be liable for the costs thereof.
OCGA § 9-15-7