Prevention of traumatic injury to the bile ducts