Added a safety procedure to exit from WiFly command mode in case of hung
Added a safety procedure to exit from WiFly command mode in case of hung