add cancel method to Pipe. AGDROID-11