Exit handling and change of proximity.