Section 25. All fines and forfeitures recovered under this chapter shall, except as provided in sections twenty-four and twenty-seven, accrue to the benefit of the town where the required return should have been made.