title: MEAN app crashed on Internet disconnection
body: <p>I am developing a MEAN application. When I use localhost for local development the app is running fine on <a href="http://localhost:3300" rel="nofollow">http://localhost:3300</a> when Internet is there but throws below error when the Internet is disconnected.  </p>
  
  <pre><code>process.nextTick(function() { throw err; })
                                              ^
  Error: getaddrinfo ENOENT
      at Object.exports._errnoException (util.js:746:11)
      at errnoException (dns.js:49:15)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)
      [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  
  <p>Can anyone help me resolving this strange issue? As app is on localhost,it should not have any dependency on Internet.
  My MongoDB connection is on mongodb://localhost:27017.</p>
  
  <p>Thanks!</p>