Stop transmission before updating the config file