Five whys - Joel on Software. a good post on how to deal when shit happens.