net/smc: improve termination processing