Enron stunned investors by collapsing into bankruptcy in 2001 following revelations that the former chief financial officer was a principal in a series of offbalance sheet partnerships that disguised the company 's financial condition .