Refresh session before checking replica set status