U.S. crude oil rallied towards the close, but still ended slightly lower for a third straight session Friday, on continued fears of a supply glut with Iran set to flood global markets, even as the dollar trended higher against a basket of some major currencies.