Refinery expected to shut remaining units as crude dwindles