         self.machine.addEventHandler(.Reject, order: 90) { [weak self] context in
             if let errorInfo = context.userInfo as? ErrorInfo {
                 self!.errorInfo = errorInfo
-                configureHandler.cancel?() // NOTE: call configured cancellation on reject as well
+                configuration.cancel?() // NOTE: call configured cancellation on reject as well
             }
         }
         

                }
            }
            
            configure.cancel = {
                self.cancelAll(tasks)
                return
            }
            configure.pause = {
                self.pauseAll(tasks)
                return
            }
            configure.resume = {
                self.resumeAll(tasks)
                return
            }
            
        }
    }

    
    internal init(_closure: _TaskClosure)
    {
        let configuration = Configuration()
        
        // setup state machine
        self.machine = Machine(state: .Running) {
