public static void LogOut(MongoDatabase database) { try { MongoDatabaseCommands.RunCommand(database, new { logout = Mongo.CommandArgument }); } //intentional -- ignore errors //I think this is a good idea... catch { } }