If the Minister determines under section 49 that the person is not to be surrendered, or declines to order the surrender of the person under section 51(2)(b) or section 54, the person must be discharged from custody forthwith unless the person is subject to any other order for detention.