I like to have a `Close()` on the type, instead of an anonymous function. Anonymous functions like these beg for an extraction to a method.