Without prejudice to other surveillance measures decided by the administrative or judicial authority, detention is terminated if the French Office for the Protection of Refugees and Stateless Persons recognises the foreign national as a refugee or grants him or her the benefit of subsidiary protection.