geoip: reorder statements, so that file handles are closed first