How to prepare for when something goes wrong and how to respond when it does