Check internet access when a picture is downloaded. Fix onDestroy exception.