title: Node.js app crashes when creating indexes for mongodb
body: <p>When i creating indexes via <code>createIndex</code> or <code>ensureIndex</code> methods my node.js app crashing without providing any details of occured error.</p>
  
  <p>Also i have noticed that all my code works very well with my localhost mongodb until i use remote mongdb atlas replica set.</p>
  
  <p>Node.js: 8.5.0
  Mongodb: 3.6.4
  Mongodb driver for Node.js: 3.0.8</p>
  
  <p>Example code (but i have tried different variants of implementation, nothing helps):</p>
  
  <pre><code>db.collection('stars').ensureIndex({name: 1}, { unique: true });
  </code></pre>
  
  <p>I am already listening for <code>uncaughtException</code> and <code>unhandledRejection</code> events, but they dont fire on this crash.</p>
  
  <p>What can i do to get details or get rid of this error?</p>
  
  <p>Thanks for any help!</p>