but in his waning years , and sensing his own impending mortality , or perhaps seeking some modest redemption , he would leave as his legacy the cure for the disease that had claimed his patron 's life .