client add cancelTask method