Allow to stop nsq loop outside nsq class