title: can't get pm2 exit or stop event in nodeJS
body: <ol>
  <li>i am using pm2 for keep server start in nodeJS</li>
  <li>code uploaded on server and run command <strong>pm2 start app.js --name appName</strong></li>
  <li>but in some case when get error in code or something else, pm2 was stop OR kill all processes</li>
  <li>at that time i want to send mail that the <strong>pm2 process was stop OR kill</strong></li>
  <li><p>i am using pm2.connect in app.js but cant't get event whenever pm2 stop OR kill, here is the code</p>
  
  <pre><code>var pm2 = require('pm2');
  
  pm2.connect(function() {
     pm2.launchBus(function(err, bus) {
        bus.on('process:event', function(data) {
           console.log('IN APP ===&gt;', data.event);
           Logger.info("IN APP ====&gt; ", data.event);
           if (data.event === "exit") {
              console.log('IN APP exit', data.event);
              Logger.info("IN APP exit ====&gt; ", data.event);
           }
      });
    });
  });
  </code></pre></li>
  </ol>
  
  <blockquote>
    <p>with this code i am not able to get any event when pm2 was STOP or kill</p>
  </blockquote>