Every justice of a municipal court shall pay over to the town or county to which any fine or forfeiture accrues every such fine or forfeiture received by him within 6 months after the receipt of the same. Upon default thereof, he shall forfeit double the amount of such fine or forfeiture.