The judge had just denied Giovanni (John) Palumbo's request to be freed while he awaits his next court date. That's when Palumbo rose and started shouting and swearing.
"You know you're all very sick, you really are - it's so sad," Palumbo said. "Have fun, because I'm going to keep having fun, wherever I am. ... What a bunch of psychopaths. Woo hoo.
"Shame, shame, shame. Shame on all of you!"
In September, Palumbo pleaded guilty to criminal harassment and one count of failure to comply with a court order. He pleaded guilty after listening to testimony from Twain.
The judge ordered him to undergo a psychiatric evaluation. The report from that evaluation said Palumbo has bipolar disorder and other problems but is still mentally competent.
Last month, Twain testified via video and described the numerous love letters Palumbo had mailed to her residences in Ontario and Switzerland, and discussed the feelings of fear and vulnerability conjured by his unwanted visits.
Palumbo was seen at her family cottage, her grandmother's funeral and at the Juno Awards in March, where he was arrested. He's remained in custody since then.
Palumbo was ordered to return to court in November for sentencing.
The Associated Press contributed to this report.