SOLVED: SciFi TV show about keeping brains alive after the body dies.
A gangster who is ill is approached about having his brain live in a jar. The person who can arrange this 'downloads' his thoughts but when the gangster actually dies he feeds him back his most terrible memories.
I thought the gangster may have been Vic Tayback but I didn't see anything on IMDB that struck a chord. I'm thinking it was a Night Gallery episode.