A generic approach for reactive stateful mitigation of application failures in distributed robotics systems deployed with Kubernetes