Failure of medium-sized banks should serve as a wake-up call to regulators and markets