         if answer {
             if let index = self.index(viewcontroller: .vctabmain) {
                 self.restorebutton.isEnabled = false
+                self.abortandclose = true
                 self.initiateProgressbar()
                 self.outputprocess = OutputProcess()
                 self.sendprocess?.sendoutputprocessreference(outputprocess: self.outputprocess)

            self.gotit.textColor = .green
            self.gotit.stringValue = "Restore is completed..."
            self.restoreprogress.isHidden = true
            self.restoreprogress.isHidden = false
            self.restorecompleted = true
        }
    }


extension ViewControllerRestore: UpdateProgress {
    func processTermination() {
        self.abortandclose = false
        if self.estimationcompleted == false {
            self.estimationcompleted = true
            self.setNumbers(outputprocess: self.outputprocess)
