Raise error on failed action in flow.