This quote means that if something turns out well, you don’t need to explain why; if it doesn’t work out, it’s better to not be around to explain why. It suggests that if you plan something which does not have the desired result, you should take the opportunity to learn from it, but not draw attention to yourself by explaining the details.