Whether the defendant's appeal could be withdrawn before the close of oral debates
Yes. The withdrawal was valid and had to be taken into account.
Under Art. 386(2)(a) CPP, an appeal may be withdrawn in oral proceedings before the close of debates; that condition was met.