The neglect of what AIG was doing before the crash was an intentional policy priority. The recent bail-out cost was just the deferred cost of that policy.
Bailing out AIG (and their contract partners) was the problem. Creating an environment where bailout was even perceived as possible was the problem. Turning the US into a debtor nation via enormous government spending was the problem (in that it kicked off a number of other distortions).