The benchmark Sensex and Nifty ended with a decline of around half a per cent