def METHOD_NAME(self):
    self.send_tcl("exit")
    self.send_tcl("shutdown")
    self.socket.close()
    try:
        self.process.wait(timeout=10)
    except subprocess.TimeoutExpired as e:
        self.process.kill()
        self.logger.error("Failed to stop OpenOCD")
        self.logger.exception(e)
        self.postmortem()