Retreating units

This is more of a question for the mechanics of the online game than anything else, but when someone misses a retreat phase is there a preference to where their unit goes? To clarify, does it retreat to a random spot or perhaps the nearest neutral area?