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

    {
        self.init(_closure: { (progress, fulfill, _reject: ErrorInfo -> Void, configure) in
            // NOTE: don't expose rejectHandler with ErrorInfo (isCancelled) for public init
            closure(progress: progress, fulfill: fulfill, reject: { (error: Error?) in _reject(ErrorInfo(error: error, isCancelled: false)) }, configure: &configure)
            return
        })
    }

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