Functional equations in the theory of dynamic programming XIII: Stability considerations