Gains in blue-chip banking, auto and capital goods shares in the pre-close session helped the markets recover from losses occurred in late afternoon session