i think hell retreat, if he wanted the kages dead they would be dead, hes not in it for the kill, hell probably break out of edo somehow and fall back to meet tobi
If Madara was serious about killing them, he would just drop another meteor on them and leave. He's still got a lot more to show and the fights still in his favour.