def shutdown(self, *args):
try:<EOL><INDENT>self._shutdown()<EOL>if self.process:<EOL><INDENT>self.process.wait()<EOL>self.process.stdout.close()<EOL>self.process.stdin.close()<EOL>self.process.stderr.close()<EOL><DEDENT>self.finished = True<EOL>self.send_testcase('<STR_LIT>', '<STR_LIT:127.0.0.1>', self.config.ports["<STR_LIT>"]["<STR_LIT>"])<EOL>self.logger.debug("<STR_LIT>".format(time.strftime("<STR_LIT>")))<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise PJFBaseException(e.message if hasattr(e, "<STR_LIT:message>") else str(e))<EOL><DEDENT>
Shutdown the running process and the monitor