You have to look at it from Toyota's perspective. UAW plant in expensive California.... Just the overhead in dealing with California government greed and complexity would need a small army of accountants, legal, HR and others to keep it going. Why not just close it? Excess capacity and make them elsewhere.
Good cost cutting move. Stupid place to put a auto manufacturing plant in anyway. Probably was subsidized by California government at one time before they went broke.