At the same time, the company is facing weak margins in its refining business, which reported a loss in the fourth quarter for the first time since 2020