When he found out who the dog’s previous owner was, he could not return the dog to the shelter