def close(self):
if self._closed:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self._closed = True<EOL>
Since all child close calls will reference this, which in turn
reference parent with the count, nothing needs to be done
otherwise the parent reference count will be doubled for no
reason.