Check connection each time