'return (outfile, errfile) and stop capturing.'

def done(self, save=True):

    outfile = errfile = None
    if (hasattr(self, 'out') and (not self.out.tmpfile.closed)):
        outfile = self.out.done()
    if (hasattr(self, 'err') and (not self.err.tmpfile.closed)):
        errfile = self.err.done()
    if hasattr(self, 'in_'):
        tmpfile = self.in_.done()
    if save:
        self._save()
    return (outfile, errfile)
