Or possibly that they retreat towards closest friendly territory, closest being whichever has the shortest travel distance (so that if you block their retreat, they would retreat towards your territory).