Refinery maintenance, unplanned outages slow fall in profits