Updated: If your pet is dead for some reason don't cry, one of the same species will appear somewhere near your capital city.
They don't work like ships, living beings heal!
Additionally, a must-have, just name your Pets! https://steamcommunity.com/sharedfiles/filedetails/?id=2507454153
If you want your pets but remove Barbarian ones, use this version instead.