One approach to dealing with this problem is to employ Autonomic Computing.
Autonomic Computing is an industry-wide effort to develop Computer Systems that can configure themselves, optimize and tune themselves, heal themselves when broken, and protect themselves from outside intruders and self-destruction.