      def terminate_in_thread(self, command, process):
          """ Terminate the subprocess """
          logger.debug("Terminating wrapper")
          if command == "train":
              timeout = get_config().tk_vars["traintimeout"].get()
              logger.debug("Sending Exit Signal")
              print("Sending Exit Signal", flush=True)
              now = time()
              if os.name == "nt":
                  logger.debug("Sending carriage return to process")
 
</s> remove             if self.task.command == "train":
                self.tk_vars["istraining"].set(False)
 </s> add  </s> remove         root = get_config().root
 </s> add  </s> remove             # Initialize session stats and set initial timestamp
 </s> add             # Set initial timestamp </s> remove         if not get_config().session.initialized and iterations > 0:
            # Don't initialize session until after the first iteration as state
            # file must exist first
            get_config().session.initialize_session(is_training=True)

 </s> add 
            timeout = self.config.tk_vars["traintimeout"].get()
      def terminate_in_thread(self, command, process):
          """ Terminate the subprocess """
          logger.debug("Terminating wrapper")
          if command == "train":
            timeout = self.config.tk_vars["traintimeout"].get()
              logger.debug("Sending Exit Signal")
              print("Sending Exit Signal", flush=True)
              now = time()
              if os.name == "nt":
                  logger.debug("Sending carriage return to process")
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