Add NewGeneratorCloseMayFail function.
Add tests to ensure that when Next propagates a close error that Close() returns that same error.