title: Mongoskin throws MongoError: Connection Closed By Application] name: 'MongoError'
body: <p>Mongoskin NPM package is used for Node.js to <code>find</code> documents in a remote Mongodb database. However doing a simple <code>find</code> operation is throwing a MongoError. Inserting documents is fine. What went wrong?</p>
  
  <p>Using node v0.12.0, mongoskin v1.4.13, mongodb v3.0.4.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>var mongo = require('mongoskin')
  var db = mongo.db('mongodb://domain.com:27017/dbname', {native_parser: true})
  
  db.collection('animals').find({}, function(err, result) {
      result.each(function(err, doc) {
          console.log(err)
      })
  
      db.close()
  })
  </code></pre>
  
  <p>This throws an error:</p>
  
  <pre><code>{ [MongoError: Connection Closed By Application] name: 'MongoError' }
  </code></pre>
  
  <hr>
  
  <h2>Update</h2>
  
  <pre><code>db.collection('animals').find({}, function(err, result) {
      if(err)
          console.log(err)
  
      console.log('result.length: ' + result.length)
  
      result.each(function(index, doc) {
          console.log(index)
  
          if(index == result.length -1)
              db.close()
      })
  })
  </code></pre>
  
  <p>returns </p>
  
  <pre><code>result.length: undefined
  null
  null
  </code></pre>