Oscillating between positive and negative terrain, key equity benchmarks witnessed a relief rally in the last hour of trade, which helped in closing the session near intraday high levels on Wednesday. Markets rebounded from previous day fall, with the Sensex and the Nifty, closing at 40,850.29 and 12,037.30 levels, respectively.