Handle "socket" module related exceptions in "foundations.common.isInternetAvailable" definition.

Closes #11.