I think he was provided an opportunity to kill himself. But beyond that, who knows? He could have started making plans upon realizing his arrest was imminent, or he could have later reached out to some “friends” who were only happy to assist. Or it could have been his “friends” who got the ball rolling — we simply do not know.
This was a man who had nothing left to live for, who was destined to die in prison — most likely violently after a period of sustained abuse. Why bother killing him when it would be so much easier to just let him off himself?