I think the best option is to ask to make them "unattackable" while they run back to their group/spawn point. And when they reach it they start bandaging (bandaging process should be interruptable).
What would be more realistic is to make them re-leash and attack player again. But again, there...