Any fine imposed by the court pursuant to this chapter, except for fines imposed under Sections 2101 and 2102, shall be paid to the office of the prosecutor bringing the complaint, but if the case was referred to the prosecutor by the department, or some other governmental unit, one-half of the criminal fine shall be paid to that governmental unit.