If you think that this is quickly... I'm not forcing myself to answer as soon as possible lately, I can delay it for hours, but also I don't like to have too many pending questions.
That close trades block will pass anyway, even if there is nothing closed. It's there to clear the Sell before going to Buy and clear the Buy before going to Sell. It's because something should close those trades, they have no SL and no TP. Well, this is the example I give, this is the general example of buy-sell-buy-sell on reverse situations, if you know what I mean.