              logger.debug("Terminating wrapper in LongRunningTask")
              self.thread = LongRunningTask(target=self.terminate_in_thread,
                                            args=(self.command, self.process))
              self.thread.start()
              root.after(1000, self.terminate)
          elif not self.thread.complete.is_set():
              logger.debug("Not finished terminating")
              root.after(1000, self.terminate)
          else:
              logger.debug("Termination Complete. Cleaning up")
 
</s> remove             root.after(1000, self.terminate)
 </s> add             self.config.root.after(1000, self.terminate) </s> remove         root = get_config().root
 </s> add  </s> remove         self.statusbar = get_config().statusbar
 </s> add         self.config = get_config()
        self.statusbar = self.config.statusbar </s> remove         dst = str(get_folder("{}_snapshot_{}_iters".format(self.model_dir, iterations)))
 </s> add         snapshot_dir = "{}_snapshot_{}_iters".format(self.model_dir, iterations)

        if os.path.isdir(snapshot_dir):
            logger.debug("Removing previously existing snapshot folder: '%s'", snapshot_dir)
            rmtree(snapshot_dir)

        dst = str(get_folder(snapshot_dir))
            self.config.root.after(1000, self.terminate)
              logger.debug("Terminating wrapper in LongRunningTask")
              self.thread = LongRunningTask(target=self.terminate_in_thread,
                                            args=(self.command, self.process))
              self.thread.start()
            self.config.root.after(1000, self.terminate)
          elif not self.thread.complete.is_set():
              logger.debug("Not finished terminating")
              root.after(1000, self.terminate)
          else:
              logger.debug("Termination Complete. Cleaning up")
keep keep keep keep replace keep keep keep keep keep
 Bugfixes

- Fix filter/nfilter for convert
- Remove existing snapshot folder before creating if it pre-exists
- Don't initialize training session until after first save. "Nonetype" session fix 
lib/gui/wrapper.py