Add locationData.close() for safety