Uh, when the patient dies on the table. I've been there.
I thought there was a well-known half-joke about a doctor with no bedside manner saying "The surgery was a success but the patient died." It actually is possible, from a purely medical standpoint, although perhaps not the best thing to say in front of the patient's family.