The only person present (and living) who should have received a hug would be the seven year old child who was forced to witness her father murder her mother.
If your best friend murdered his wife in front of your best friend’s daughter, and you hugged him, what kind of message would you send to a child?
I think they were shocked and acting in the moment, not analyzing the situation to think about what “message” it would send.