Check connection before download