Your best efforts won’t prevent a situation from falling flat on its face. Think fast and you can help it back on its feet again.