Do not remove gen on StopIteration, generators must handle this manually