Fix UnionIterator error handling.
Avoid recursive error handling.
Use exports instead of library files.