Added cancel support
Signed-off-by:Md. Enzam Hossain <meenzam@gmail.com>