Fixed issue 32. Check network connectivity before operation
clean error fix when internet down