def terminate(self): server_info = self.conf.getGameStateServerInfo() comm = BotCommClient( server_info.host, server_info.port, server_info.key, server_info.iv, "FLAG_SUBMISSION_BOT_KILL") comm.start() time.sleep(2) comm.kill() comm.join() Process.terminate(self)