Add cancel handler