RE: dog running off!
The dog needs a kennel run and strict Obedience. Scolding him, spanking etc does no good --- and is particularly bad if it occurs when he comes back.
Dogs must either be in a kennel run or under constant supervision.............Period.
.