(2)During the course of the trial of an election petition, the court may at any time call upon the petitioner to give such further security for costs as it may direct and if the petitioner fails to do so inspite of allowing sufficient time, dismiss the petition.