Add connection checks to Connectivity class