Change names of exceptions, automatically close yielding stream