Investors have grown increasingly concerned that the war in Iran could escalate again, putting energy supplies at greater risk.