A well-designed deposit insurance system can prevent bank runs without creating excessive moral hazard.
When in doubt, use brute force.