Add --checkconfig flag. Break if config file can't be read