message: check if smId is attr before checking for nonetype. fixes "AttributeError: 'ScriptMachine' object has no attribute 'smId'" error
diff: @@ -261,6 +261,7 @@ class ScriptMachine:
  self.script = None
  def __del__(self):
  + if hasattr(self, 'smId'):
  if self.smId: self.cleanup()
  def clone(self):
  