Check for Internet connectivity.

Closes #3