when brain server is shutdown , retry to connect the server