The chairman of the Democratic National Committee on Sunday defended a new multimillion-dollar lawsuit against the Russian government, the Trump campaign and WikiLeaks, with talk show hosts asking whether it was distracting from efforts to rebuild the Democratic Party.

โ€œI donโ€™t know when Director Muellerโ€™s investigation is going to end, so we need to file now to protect our rights,โ€ Tom Perez said in an interview with ABC Newsโ€™ George Stephanopoulos, referring to special counsel Robert S. Mueller IIIโ€™s investigation into Russian interference in the 2016 election. โ€œWeโ€™ve got elections coming up in November. Itโ€™s hard to win elections when you have interference in elections. Theyโ€™ve done it with impunity, and Iโ€™m concerned that itโ€™s going to happen again. So, thatโ€™s why we did it now.โ€

The lawsuit, which was first reported by The Washington Post, has been mocked by Republicans as well as the Democratic Partyโ€™s left-wing critics.

While email hacks of the DNC, the Democratic Congressional Campaign Committee and Hillary Clinton campaign Chairman John Podesta caused months of headaches for the party during the election campaign โ€” including the forced resignation of Rep. Debbie Wasserman Schultz of Florida, the partyโ€™s longtime chairwoman โ€” many supporters of Sen. Bernie Sanders, I-Vt., Clintonโ€™s challenger in the Democratic primary, said the party was refusing to reckon with its decline.

โ€œThey still havenโ€™t done a postmortem of why they lost the election, because the explanation for everything is Russia,โ€ said Tim Canova, a Sanders supporter who challenged Wasserman Schultz in her 2016 congressional primary and is now challenging her as an independent. โ€œThey were losing midterm elections before anything got hacked.โ€

In a Friday tweet, President Donald Trump wrote that Democrats had โ€œsued the Republicans for winningโ€ and encouraged his party to โ€œcounter and force them to turn over a treasure trove of material, including servers and emails.โ€ On its own Twitter account, WikiLeaks argued that the DNC was distracting from a previous โ€œmoribund publicity lawsuitโ€ and that the anti-secrecy organization was โ€œconstitutionally protected from such suits.โ€

But Perez, who had no role at the DNC during the 2016 campaign, told NBC Newsโ€™ Chuck Todd that the lawsuit was necessary to protect both the committee and U.S. elections. He said he was โ€œconfident that we will get a jury trialโ€ and added that he had โ€œnot consulted Hillary Clinton to ask her permissionโ€ before filing the complaint.

โ€œWe had people on our team who got death threats,โ€ Perez said. โ€œWhen you do that to people on my team โ€” yeah, Iโ€™m gonna punch back.โ€

Since the 2016 election, even as Democrats have scored unexpected victories in state and congressional races, the DNCโ€™s brand has not recovered from the damaging hacks. Several civil suits have been filed against the DNC by Sanders supporters, who argue that the content of emails released by hackers showed that DNC employees conspired to help Clinton win the Democratic nomination.

The emails produced no evidence that the primaries had been skewed โ€” states and state parties, not the DNC, control primaries and caucuses. But numerous conspiracy theories grew out of the email hack. The family of Seth Rich, a DNC staffer who was killed outside his home in July 2016, has filed two lawsuits against media outlets that suggested that Rich, not hackers, released the email trove as a way of getting justice for Sanders.

Under Perez, the DNC has struggled to get past the hacking story. While Democratic campaigns and other party committees have experienced a fundraising surge, the DNC has badly lagged the Republican National Committee. Since the 2016 election, the RNC has raised $171.6 million to the DNCโ€™s $87.7 million. In March, as Democrats celebrated the victory of Conor Lamb in a Pennsylvania congressional race in which Republicans had spent heavily, the RNC nearly doubled the DNCโ€™s receipts, raising $13.9 million to the DNCโ€™s $7 million.

On Sundayโ€™s talk shows, Perez said the DNC was acting responsibly by suing now. โ€œA year ago, people were saying: File a lawsuit,โ€ he said on NBC. โ€œI didnโ€™t do it then, because I believe in doing your homework.โ€

Pressed on how much the lawsuit might cost โ€” a worry for Democrats in cash-starved red states โ€” Perez said it was โ€œhard to put a price tag on preserving democracy.โ€

After Todd played back criticism of the lawsuit from Rep. Jackie Speier, D-Calif., and Sen. Claire McCaskill, D-Mo., Perez said the fight would be worth it.

โ€œI disagree with them for the simple reason that our democracy is priceless,โ€ Perez said. โ€œWe canโ€™t afford not to do this. Itโ€™s hard to win elections when you have interference in elections. And weโ€™ve been winning elections.โ€