What I do is place a regular door along the perimeter fence and station a dog and armed guard there. Every time they start digging they always head for that door, and as long as the fence is right next to map edge they seem to have to exit threw the door, but they never get past guards.