Fixes to throw correctly on Db.open, MongoClient.connect #1057