I'd need to know more about the logic of the Close All Positions EA. It's possible that the gap may have confused it.

Then again, if you are trying to close positions at a profit target, why not just set TP on each position?