change shutdown logic

when get signal 9, stop udp/tcp accept, then stop nsq connection