Completed generator should throw correct error after it had error inside