fix problem when closing a replicaset server
0.0.6