Solve bug that destroy mongo client make the request invalid.