  We consider an optimal switching problem with random lag and possibility of
component failure. The random lag is modeled by letting the operation mode
follow a regime switching Markov-model with transition intensities that depend
on the switching mode. The possibility of failures is modeled by having
absorbing components. We show existence of an optimal control for the problem
by applying a probabilistic technique based on the concept of Snell envelopes.
