The password to save him is in the bad ending, you need to use the password at the vault before he dies.