User blog:JackfieldsA113/Can Loyal Squad Members Die?

I recently completed my second playthrough of Mass Effect 2. I did all the loyalty missions and resolved conflicts between team members peacefully. I thought everything would work out but somehow Mordin still ended up dying during the final mission. Did I do something wrong or is it just a game glitch?