Sensex closes lower