title: How to stop and restart a twitter stream with ntwitter
body: <p>I'm new to node.js so please excuse the simple question. I'm writing something standard: a rest API that goes to twitter using ntwitter and saves stuff on mysql.  What I'm having trouble is disconnecting and connecting back to twitter using ntwitter.</p>
  
  <p>I checked a somewhat similar question to mine but that one is still unanswered: <a href="https://stackoverflow.com/questions/9542941/restarting-nodejs-ntwitter-twitter-stream-with-different-track-keywords">Restarting nodejs ntwitter twitter stream with different track keywords</a></p>
  
  <p>The question is two fold: </p>
  
  <p>1) How to check if the <code>twit.stream</code> is alive<br>
  2) How to kill it/manually disconnect from twitter</p>
  
  <p>I'm using <code>destroy</code> but that does not seem to work. The relevant part of the code is:</p>
  
  <pre><code>if (values[0] == 'newStatusAdded') {
    console.log('Need to stop twitter listener');
    //check if twitter stream is running
    if (twit.stream) {
      twit.stream.destroy;
      debugger;
      console.log('Stopped twitter listener');
    }
  </code></pre>
  
  <p>thanks....</p>