Describe how you would implement a fail-safe mechanism in the software stack if the primary edge AI payload application crashes mid-flight.