This was unfortunately a bad incident. However, we should not be surprised as things made by human and/or robotic hands will eventually break down. We see car fires, we need new watches and cell phones and at times our bodies also can break down.
Carnival did have a contingency plan implemented, as a big corporations should, to quickly remedy he situation. That's what Ship repair facilities are built to do; repair older vessels!