title: Meteor app crashes periodically with a Mongo error
body: <p>Meteor app crashes every two-three minutes with this error:</p>
  
  <pre><code>TypeError: Error.captureStackTrace is not a function
      at Error.MongoError (/Users/alex/.meteor/packages/npm-mongo/.1.5.45.1i7w6an++os+web.browser+web.cordova/npm/node_modules/mongodb-core/lib/error.js:13:9)
      at Function.MongoError.create (/Users/alex/.meteor/packages/npm-mongo/.1.5.45.1i7w6an++os+web.browser+web.cordova/npm/node_modules/mongodb-core/lib/error.js:29:11)
      at Socket.&lt;anonymous&gt; (/Users/alex/.meteor/packages/npm-mongo/.1.5.45.1i7w6an++os+web.browser+web.cordova/npm/node_modules/mongodb-core/lib/connection/connection.js:161:20)
      at Socket.g (events.js:260:16)
      at emitNone (events.js:67:13)
      at Socket.emit (events.js:166:7)
      at Socket._onTimeout (net.js:332:8)
      at _runOnTimeout (timers.js:524:11)
      at _makeTimerTimeout (timers.js:515:3)
      at Timer.unrefTimeout (timers.js:584:5)
  </code></pre>
  
  <p>This started after I updated my project to Meteor 1.4. Is Meteor doing something in the background? How can I debug it to find out what's going on?</p>
  
  <p>Additional details: I'm using React, react-router and reactrouter:react-router-ssr. So there is server side rendering. Maybe this will trigger something...</p>
  
  <p>Guys. The most important detail as I see it is this:
  <code>Error.captureStackTrace is not a function</code>
  This is a core node function! If I run node and enter <code>Error</code> I see the function: <code>captureStackTrace: [Function: captureStackTrace]</code>. So the issue looks like Meteor is maybe running an older version of node that doesn't have <code>captureStackTrace</code> in <code>Error</code> yet? Well, I followed the instructions <a href="https://stackoverflow.com/questions/12014750/how-can-i-know-the-version-of-node-being-used-by-my-meteor-app">here</a> to check the version:</p>
  
  <pre><code>MonsterMac:/ alex$ cd ~/.meteor/packages/meteor-tool/1.4.0-1/mt-os.osx.x86_64/dev_bundle/bin/
  MonsterMac:bin alex$ ./node -v
  v4.4.7
  </code></pre>
  
  <p>According to the <a href="https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.4.7" rel="nofollow noreferrer">Change log</a> <code>captureStackTrace</code> is there in version 4.4.7. Now what?</p>