U.S. crude oil futures ended near $65 to mark their highest level in two weeks on the back of stronger RBOB futures as mounting refinery glitches added to worries over gasoline supplies and refinery output.

The latest fuel to the gasoline rally was news that BP will shut a gasoline-making unit at its 460,000 barrels per day refinery in Texas City, Texas, on Friday for a planned 11-day turnaround.

Prices also rose as traders learned that Murphy Oil had shut a crude distillation unit at its 120,000 bpd refinery in Meraux, La., for maintenance. Murphy later said it would restart the CDU later Thursday after a brief shutdown for unplanned repairs.

“The gasoline market is on a boil because of the string of refinery issues,” said Jim Ritterbusch, president of Ritterbusch & Associates in Galena, Illinois.

June crude oil soared $2.31, or 3.7%, to $64.86 a barrel, trading from $62.48 to $64.90, which was the highest level since May 2.

NYMEX June RBOB gasoline finished 9.96 cents or 4.3% higher at $2.4366 a gallon, after hitting a session high of $2.44 just below the April 30 high of $2.455, which itself was the highest level since $2.4849 on May 12, 2006.

NYMEX June heating oil rose 6.97 cents or 3.7% at $1.9367 a gallon, trading $1.8708 to $1.94, which was the highest level since prices hit $1.9440 on Sept. 6, 2006.

Also, ConocoPhillips plans to shut the 67,000-bpd fluidic catalytic cracking unit at its 146,000-bpd Borger, Texas, refinery on Friday for a month-long overhaul, the company told state regulators.

The cat cracker is to be shut through June 23, according to the notice filed. A CO boiler will also be shut for work at the refinery from Friday to Monday.

The restart on Wednesday of Valero Energy’s 130,000 bpd Houston refinery failed and that would cut gasoline production at the plant by 64,000 bpd for about a week.

Traders said some units at ConocoPhillips’ Sweeny, Texas, refinery were running at reduced rates.

The multiplying refinery troubles have gained more focus in the past two sessions, overriding Wednesday’s government data that showed gasoline stocks rose 1.7 million barrels last week,mainly as the result of a large inflow of imports.

Gasoline stocks have risen 2.1 million barrels in two weeks.

Before that, stocks had declined for 12 straight weeks, slashing inventories by 34.1 million barrels, or 15%, from the early February storage.