def shutdown(self, join=True, timeout=None):
if self.is_alive():  <EOL><INDENT>print("<STR_LIT>")<EOL>self.exit.set()<EOL>if join:<EOL><INDENT>self.join(timeout=timeout)<EOL><DEDENT><DEDENT>exitcode = self._process.exitcode if self._process else None  <EOL>return exitcode<EOL>
Clean shutdown of the node.
:param join: optionally wait for the process to end (default : True)
:return: None