Fix a file descriptor leak when shuffling stderr to catch geoip errors.

old_stderr should be closed, as it is not used anymore. If one happens to reopen a database often, or open many, then there's the risk he incurs in the 1024 file descriptors limit.