Robert P. Hanssen was serving several concurrent life sentences for espionage against the United States of America. He passed secrets to the KGB, then the Russians for 22 years.
The movie BREACH (2007) shows the story of Robert Hanssen's last six months in the FBI, how the 'ghost' assigned to him, Eric O'Neill, managed to get information on Hanssen's next 'Dead Drop' to the Russians in FoxStone Park in Vienna, VA. Hanssen's last free day on earth was February 18th, 2001.
Even though he had (has) a wife and six children, he died alone in solitary confinement. He was already dead when the guards found him at 6:55 a.m. on Monday 5 June. THAT is punishment in my estimation.
The case of Robert Hanssen was the inspiration for my dissertation on the insider risk\Insider Threat.
Let the lessons be learned.
There seems to be a theme with spies within the intelligence services.
Spies in the intelligence services (et al) is a topic that one can spend a lifetime studying. Look up the "Widow Spy" on YouTube. And, of course look up the "International Spy Museum" YouTube channel.
Don't forget to take food and water once you start watching.
As far as I know, it has never ended and it will continue: The New Spy War
This unfortunately this is the real reality, although many wish to forget it ever happened, it simply continues to happen, and we need to keep aware of this.