Cancelable handling chains with shared context infrastructure