def close(self):
<EOL>if self._env is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>_LIB.Close(self._env)<EOL>self._env = None<EOL>if self.viewer is not None:<EOL><INDENT>self.viewer.close()<EOL><DEDENT>
Close the environment.