U.S. oil closed marginally lower after a volatile session on Wednesday, while benchmark Brent traded flat after rising on worries about Russian airstrikes in Syria.
Oil prices were broadly boosted in early trade by concern about a hurricane threatening energy infrastructure on the U.S. East Coast. Book balancing by traders at the end of the month and the third quarter also made for choppy trade.
"It's the typical month-end, quarter-end 'window dressing' phenomenon," Tariq Zahir, a fund manager in oil at Tyche Capital Advisors in Laurel Hollow, New York, said, noting that similar action at end-August resulted in an 8 percent price rally.
Read MoreChesapeake cuts 15% of workforce on oil slump
Warplanes from Russia carried out air strikes against Islamic State targets in Syria, feeding worries about growing war in the Middle East.
The U.S. National Hurricane Center said it expected Hurricane Joaquin to reach the Bahamas on Wednesday night. The storm might move north to threaten the New York Harbor, delivery point for the U.S. gasoline and ultra low sulfur diesel futures contracts.
"Hurricane Joaquin may be having an effect on the market. High seas along the East Coast have been forecast and that could affect barges carrying refined products," said David Thompson, executive vice-president at Washington-based commodities broker Powerhouse.