Hernandez had everything going for him, but he could not give up his ties to the Bloods gang.  His death is a plus for society.  Moreover, he saved Massachusetts a lot of money keeping him locked up for life.