I think it goes back to transparency. The first thing to do is admit it. Explain what happened and apologize. Your customers can be very understanding provided that you enable them to be understanding, which means that you need to have an honest discussion with them and fess up when you make a mistake.