Deploy the previous version as soon as a problem is detected. This is the simplest and most reliable strategy.