close the config file after parsing