If a general verdict is rendered against the defendant, or a special verdict is given, he or she must be remanded, if in custody, or if on bail he or she shall be committed to the proper officer of the county to await the judgment of the court upon the verdict, unless, upon considering the protection of the public, the seriousness of the offense charged and proven, the previous criminal record of the defendant, the probability of the defendant failing to appear for the judgment of the court upon the verdict, and public safety, the court concludes the evidence supports its decision to allow the defendant to remain out on bail. When committed, his or her bail is exonerated, or if money is deposited instead of bail it must be refunded to the defendant or to the person or persons found by the court to have deposited said money on behalf of said defendant.