So is a pacemaker.
My husband and I discussed this at length last night, for about the fourth time this week. We've both made it clear to each other and to our families that we'll haunt anyone who keeps us plugged into anything without hope of recovery.
And we both having living wills. There won't be an issue with us.