Adding some other protections from ssl errors.