At close, the Sensex was down 540 points or 1.33% at 40145.50, and the Nifty was down 162.60 points or 1.36% at 11767.80 due to the board sell-off and weak global cues. Hero MotoCorp, Bajaj-Auto, Reliance and M&M were top losers in the Sensex pack. while gainers were HDFC Life, Nestle, Kotak Mahindra, IndusInd Bank and L&T.About 986 shares have advanced, 1655 shares declined, and 171 shares are unchanged. The BSE MidCap index tumbled 1.77 per cent while the BSE SmallCap index fell 0.88 per cent. Nifty Auto and Metal indices shed over 3 per cent each. On the NSE, all the sectoral indices ended in the red.