Added empty implemenation of StateMode::onModelFailure and renamed event and state boundary constants.