NEW YORK (CBSNewYork/AP) —Tossing the gavel aside, feisty Judge Shira Scheindlin is speaking out, declaring victory over critics in the battle over police stop-and-frisk tactics and telling why she thinks the government spoiled its chance at conviction in four trials of John “Junior” Gotti.

Scheindlin, 69, ended a 25-year career on the bench Friday to join a law firm, hoping to find public interest work to improve things like prison reform, voting rights and medical care.

READ MORE: 5 Wanted After Allegedly Assaulting, Stabbing 16-Year-Old Boy In The Bronx

She says she isn’t leaving the lifetime appointment because of controversy, like her handling of stop-and-frisk litigation.

“Am I walking out mad? No. No,” she says.

It might be understandable if she was after a three-judge panel of the 2nd U.S. Circuit Court of Appeals removed her from the case in 2013 after 14 years, saying she ran afoul of the code of conduct for U.S. judges.

Shocked at an order she now calls “lawless,” she took the unusual step of issuing a statement to the press that day.

Support from lawyers and judges nationwide, along with newspaper editorials, pressured the court to backtrack, saying it never meant to imply she was unethical, she recalled.

“I’ve never seen a personal attack like that,” she says.

Scheindlin said a second 2nd Circuit opinion was almost apologetic, resurrecting her reputation.

“So I thought in the end I came out the victor. I really do. I thought they were the loser,” she said. “I was the winner.”

The unusual appeals action came two months after Scheindlin concluded police officers sometimes carried out stop-and-frisk unconstitutionally by discriminating against minorities.

Scheindlin references the ruling with pride, saying it is widely read in law schools and a remedies opinion is used nationwide to guide police reform.

Mostly, she’s proud of the reduction of stop-and-frisk encounters in New York City from nearly 700,000 in 2011 to 25,000 in 2015 under the administration of Mayor Bill de Blasio, who settled the case, ending appeals.

“That’s a 96 percent reduction. And nothing’s blown up. The city goes on, the crime rate is steady or dropping,” she says.

READ MORE: Police: Suspect Attacks Man In Hell's Kitchen, Steals Wallet

The federal monitor overseeing changes to the New York City Police Department’s stop-and-frisk program said in a February progress report that the department had done good work setting new policy, but putting it into practice was a challenge.

Her face brightened at mention of the Gotti trials from 2005 to 2009. Although his father, the former Gambino family crime boss, died in prison, the younger Gotti put up an unusual defense, saying he quit organized crime.

Scheindlin calls it a “sympathetic defense” made more believable by “one terrible mistake” by prosecutors that contrasted his good-guy appearance with the testimony of “sleazy cooperators.”

“They played the tapes of his prison visits to his dying father. And what you saw on those tapes was a very, very likeable son. I remember being moved myself,” she said.

She said other prison tapes `”showed him as kind of an everyday guy willing to mix with other prisoners, black and white.”

And she says the persona was aided in the first trial when a courtroom speaker emitted a gunshot-like sound, causing Gotti to spring from his seat shouting: “It wasn’t me. I didn’t do it.’ And it was so funny. — The whole jury laughed.”

Scheindlin said she also believed the government thought it was her fault it could not get a conviction.

After three mistrials, the government brought a new indictment changed enough so it could get a new judge, a tougher one, she says. She was amused when it ended with a fourth hung jury.

“That was very vindicating,” she says with a smile.

She said if the government had not gotten a new judge, she would have blocked a fourth trial because “nobody should be tried a fourth time.”

Scheindlin said she thinks she’s leaving the bench on a high note with a lone regret. She’d just been assigned a lawsuit about the alleged abuse of women in prisons, the kind of case she loves.

“It was tailor made for my name,” she says, adding she knows it’s time to move on. “I didn’t want to get over-the-hill.”

(TM and © Copyright 2016 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2016 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)

MORE NEWS: Suspect Arrested In Christmas Eve Lamborghini Crash That Killed Queens Woman