support tcpsrv_shutdown inside control port callback