I am surprised they would not guard this information a bit more. I know it is hard to do with everyone involved but imagine the family of the crewmembers knowing they have a loved one working this flight? Particularly if you knew your family member was the Captain. What a terrible way to learn of his/her passing. There must be a better way to handle this.