def close(self):
try:<EOL><INDENT>self.p.stdin.write(bytes("<STR_LIT>","<STR_LIT:utf-8>"))<EOL>self.p.stdin.flush()<EOL><DEDENT>except IOError:<EOL><INDENT>self.report("<STR_LIT>")<EOL><DEDENT>self.p.wait() <EOL>try:<EOL><INDENT>os.remove(self.tmpfile) <EOL><DEDENT>except FileNotFoundError:<EOL><INDENT>pass<EOL><DEDENT>
Tell the process to exit