Closing the border wont solve the issue, they are on both sides of the border, the answer is separating them from indigenous and than targeting them, when this happens they wont crawl in Pakistan anymore, target the enemy and you target them, close border you will just misuse your forces instead...