13. Where a person ceases to be under confinement but must be detained or lodged, otherwise than in accordance with this Act, the institution must take the necessary steps to entrust the person to the care of a person in authority at an appropriate detention centre or lodging facility.