Its choice of a theme for its term at the helm , energy security , turned into an embarrassment after a natural gas pricing and transit dispute with Ukraine , a fight that risked leaving Europe short of fuel last month .