add try catch  internet connect fail