Close filehandle after geolocalization