A Pennsylvania defense attorney has made a costly mistake by improperly shutting down a line of questioning during a medical malpractice deposition, a state court judge has determined.