Nifty closes to 24000