Our government decided that the banks needed to consolidate in order to be more stable then enacted the Dodd-Frank Wall Street Reform and Consumer Protection Act which was put in place to "promote the financial stability of the United States."
If you really want to ensure banks don't go through this again I would encourage you to call your elected officials to make sure they not just protect the Dodd-Frank act, but to expand the way it helps to protect consumers from banks being shady.