Of course he did. I think he held onto this thing until the very last second. I wouldn't be surprised if the actual resignation wasn't a long-ago prepared statement sitting in his lawyer's drawer for years. End-stage liver disease also means a rapid mental decline, so I'm assuming they triggered the resignation as soon as he was irreversibly incapacitated.
I have seen a few patients with end-stage liver disease during their last days and I have to say they don't recognize their surroundings nor are they capable of reflecting on their own state. And this is a good thing probably. At times like these, it helps me to remember that lives are not defined by their endings, they are defined by how they have been lived.