def stop(self, signal=None):
signal = signal or self.int_signal<EOL>self.out.log("<STR_LIT>")<EOL>if self._process is None:<EOL><INDENT>self.out.log("<STR_LIT>")<EOL>return<EOL><DEDENT>try:<EOL><INDENT>os.killpg(os.getpgid(self._process.pid), signal)<EOL>self.out.log("<STR_LIT>")<EOL><DEDENT>except OSError:<EOL><INDENT>self.out.log("<STR_LIT>")<EOL>self.out.log(traceback.format_exc())<EOL><DEDENT>finally:<EOL><INDENT>self._process = None<EOL><DEDENT>
Stop the heroku local subprocess and all of its children.