Explicitly register generators which support name.

Avoid accidentally closing generators which do not support name.
Raise error if generator does not initialize.