Close MongoClient after each use to prevent OOME exceptions