refactor setCancelled method

With Xcode 6, `_cancelled = cancelled` occurs an error.
Apple maybe deprecate this written pattern under ARC.