def __del__(self):
self.terminate()<EOL>
Since an emulator creates a process (and sometimes a socket handle), it is good practice
to clean these up when done. Note, not terminating at this point will usually have no
ill effect - only Python 3+ on Windows had problems in this regard.