def teardown #:doc:
      unless options[:quit].to_s.strip == ''
        self.ignore_io_error = true
        exec_ignore_code options[:quit], command_timeout: 1, timeout_error: false
      end
    end
def teardown #:doc:
      unless options[:quit].to_s.strip == ''
        self.ignore_io_error = true
        exec_ignore_code options[:quit], command_timeout: 1, timeout_error: false
      end
    end
Tears down the shell session.

 This method is called after the session block is run before disconnecting the shell.

 The default implementation simply sends the quit command to the shell and waits up to 1 second for a result.

 This method will be called even if an exception is raised during the session.