If a contest is pending, the ballots shall be kept until the contest is finally determined, and then so destroyed.