 
     override func viewDidAppear() {
         super.viewDidAppear()
+        guard self.estimation == nil && self.outputprocess == nil else { return }
         self.estimation = true
         self.completed = false
         self.restorebutton.isEnabled = false

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


    // Close and dismiss view
    @IBAction func close(_ sender: NSButton) {
        if self.estimation != nil && self.outputprocess != nil { self.abort() }
        if self.completed == false { self.abort()}
        self.dismissview(viewcontroller: self, vcontroller: .vctabmain)
    }

