Stop working when there is an  error in the config