Failure detection and reconfiguration