'Close open resources.'

def close(self):

    self._close_proc()
    super(PipeReader, self).close()
    if self._tempfile:
        try:
            os.unlink(self._tempfile)
        except OSError:
            pass
        self._tempfile = None
