Sensex Closes Above 40,000, Nifty At 12,088 For First Time