Enron was cooking the books and collapsed because it was a criminal fraud. The power outages and whatnot were the fault of California regulators, every energy company did the same thing because it's what the poorly written laws said they could do. And regulation arbitrage was one of Enron's few legal profitable endeavors.