On the termination of algorithm for computing relative Gröbner bases