[SOLVED]Busted/Incompatible XBEE WIFI and Arduino UNO & Leonardo Wireless Shield

I am trying to upgrade the firmware of Xbee series 2 modules using wireless sheild and arduino leonardo. I used the method posted above partially - put in the sketch so that leanordo acts as a postman to xbee module. The basic at commands worked fine (like +++ returned OK etc). But when i try to write the firmware using X-CTU, X-CTU fails.
I have followed links which say that a Reset needs to be pressed on the xbee module at varions points of Write( like at the start of write, after write has been initiated etc). But i find that that the action required screen never closes.

I suspect that the leonardo sketch needs to do little more to upgrade firmware that what is posted in the above suggestions.

Kindly check if this is so or do you see any other cause for this.

Thanks