At the conclusion of a trial, or on declaring a mistrial for failure of a jury to reach a verdict, it is appropriate for the trial judge to thank jurors for their public service, but the judge's comments should not include praise or criticism of the verdict or the failure to reach a verdict.
Cal. R. Ct. Standard 2.30