Preventing to enter errorous states.