I think that the assault on the ship by the Gith has already been ongoing for a while by the time the game starts, and they are responsible for the dead mindlayers.
I don't remember if Shadowheart and company raided the Gith or the Mindlayers to get the Dodecahedron. If it was the Mindflayers they might also be the ones responsible for the dead crew.