Let's add an overloaded version of pump or an additional argument that specifies whether the output should be closed on finish.