         if let index = self.index {
             // Execute pretask
             self.executepretask()
+            guard self.error == false else { return }
             self.outputprocess = OutputProcessRsync()
             if let arguments = self.configurations?.arguments4rsync(index: index, argtype: .arg) {
                 if #available(OSX 10.14, *) {

final class ExecuteTaskNowShellOut: ExecuteTaskNow {
    var pretask: String?
    var posttask: String?

    func executepretask() {
        if let index = self.index {


    deinit {
        // Execute posttask
        guard self.error == false else { return }
        self.executeposttask()
    }
}
