Complex sentence: To prevent that, the returning dogs had to be shot, often by their controllers and this made the trainers unwilling to work with new dogs.
Split into simpler sentences: To prevent that, the returning dogs had to be shot, often by the people who had sent them. This made the trainers unwilling to work with new dogs.