What do you do when a trick really does go wrong, other than laughing it off? For instance when a sleight or prop clearly goes wrong, or a card stack is not correct and does not deliver the outcome you have said?

The longer and more often you perform the sooner you come to realise that if something can go wrong, at some point it probably will! Obviously, rather than having to extricate yourself from a terminal failure, it pays to rehearse adequately, and then to try and anticipate in advance what might go wrong in any given trick, and think through what you will do if the worst occurs. Having a back up plan that you have thought about in advance prevents you from being totally thrown if things go pear shaped. But as I say, mistakes will happen, and exactly what you do in response will partly depend on what the error is. If you simply bring out the wrong card at the end of a trick, it might be possible to cover by pretending the selected card has vanished completely from the deck and either palm the actual selection off and produce it from your pocket/wallet, or top change the wrong card so it becomes the right one. Moving the outcome of the trick will only be a bit dissatisfying to you, not the audience. But if it’s an irredeemable mistake, I would just laugh it off (well, I made a right mess of that, let’s do something else instead), because if you make light of it, often so will the audience and on occasions they won’t even fully realise that things didn’t turn out as intended.