close the generator after it yields back the result, it won't be run anyway