Check connection on start