lib/models.js
function disconnect(cb) {
  if (connection) {
    log.logger.debug('Mongoose disconnected');
    connection.close(cb);
  } else {
    cb();
  }
}
function disconnect(cb) {
  if (connection) {
    log.logger.debug('Mongoose disconnected');
    connection.close(cb);
  } else {
    cb();
  }
}
function disconnect ( cb ) { if ( connection ) { log . logger . debug ( 'Mongoose disconnected' ) ; connection . close ( cb ) ; } else { cb ( ) ; } }
Close all db handles, etc
Close all db handles etc