I worked on one of them some years ago. The project lead had a group spend something like six months on the design phase, before writing any code, planning out how to make it resilient and fault-tolerant and error-resistant. The finished project did that very well, to the extent that they then got a bunch of additional work from companies who had been involved in some high-profile failures on their own projects. So it can be done, but it typically isn't.