Sadly, you can't be excommunicated for being a terrible person. You have to do something heretical or deny the authority of the church. Kind of a bummer. They can tell JD he's going to hell for not being honest in confession. That's something.
Then, whoever inherits your estate gets a step-up basis on the shares they inherited which means they can immediately sale enough shares to cover the outstanding loans with ZERO capital gains, effectively shielding all the gains from ever being taxed. (not to mention normal estate tax shielding) /2
It's even worse than that. If you're wealthy enough that you're using stock collateral loans to finance expenses, then you can probably use ancillary income to make interest payments on the loans. Instead of every selling the shares, you just keep taking out more loans until you die. /1