1298. The property of a social trust that terminates by the impossibility of its fulfilment devolves to a trust, to a legal person or to any other group of persons devoted to a purpose as nearly like that of the trust as possible, designated by the court on the recommendation of the trustee. The court also obtains the advice of any person or body designated by law to supervise the trust.