      def terminate(self, message):
          """ Finalize wrapper when process has exited """
          logger.debug("Terminating Faceswap processes")
          self.tk_vars["runningtask"].set(False)
          self.statusbar.progress_stop()
          self.statusbar.status_message.set(message)
          self.tk_vars["display"].set(None)
          get_images().delete_preview()
          get_config().session.__init__()
 
</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             root.after(1000, self.terminate)
 </s> add             self.config.root.after(1000, self.terminate) </s> remove             timeout = get_config().tk_vars["traintimeout"].get()
 </s> add             timeout = self.config.tk_vars["traintimeout"].get() </s> remove         logger.debug("Initialized session")
 </s> add         logger.debug("Initialized session. Session_ID: %s", self.session_id)
        if self.task.command == "train":
            self.tk_vars["istraining"].set(False)
      def terminate(self, message):
          """ Finalize wrapper when process has exited """
          logger.debug("Terminating Faceswap processes")
          self.tk_vars["runningtask"].set(False)
        if self.task.command == "train":
            self.tk_vars["istraining"].set(False)
          self.statusbar.progress_stop()
          self.statusbar.status_message.set(message)
          self.tk_vars["display"].set(None)
          get_images().delete_preview()
          get_config().session.__init__()
keep keep keep add 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