added a connectivity checker class to secure that we are not trying to email answers without having an internet connection