For retailers large and small, mishaps are inevitable. But how a company responds to its mistakes is crucial. If handled poorly, disgruntled customers may turn away from a brand for good. But the right moves can turn a disaster into an opportunity to build greater loyalty.