The Oil companies' are following PG&E's example there, Shamus.
Except that, they won't declare bancruptcy as part of a scam to reorganize, and raise they're rates. They don't have to.
They can use any excuse they like to shut down a refinery. Why? They aren't regulated by the PUC to do so. Yes, it affects' the market, But Motor fuels such as gasoline and diesel aren't classified as utilities. Therefore, It's just another open-market commodity. There are refineries' all over the U.S., Not just California, Texas, Louisiana, and New Jersey. The reasons' they are shutting some down and other's stay open? Excess refining capacity for the prices they want to maintain. Buying gas from overseas? Overseas refineries' operate much, much more cheaply. No environmental, safety, and wage standards to uphold. So , They can max out on they're profit, and not worry about lawsuits, on-the-job injuries/deaths, and so on.
No-one in the industry comes out and says anything, being as they are protecting they're cash cow. That's why Oil company's are some of the biggest lobbyists' in congress. That's why you don't see the Gov't stepping in to protect the American consumer. It is, as I previously stated, pure, patent, BS.