Sensex ends below 39,000 on losses in RIL, bank stocks | Sharefundss