Do not leak configfile descriptor in read_config_file()
Also adjust "realfreq" and "a" on timeouts, which might improve recovering from reception errors.