Recall & Clone (Customer) Last Ticket

Hi i have follow another tutorial this works fine and this recall this ticket also but the problem is the original ticket 1st i have to use close button then again open the ticket from customer ticket entity screen and settle then when i recall the previous ticket it will work.

if i use direct settle button for original order and then when i go to to customer search and select customer and recall previous order then it will not recall.

so here i have to use always first close button before doing settle.
can any one help me for this please and here is the tutorial link. and i have share the zip file of my setup also.

Recall Ticket V5.zip (1.5 KB)