Catch SSL errors which probably relate to self-signed certificates
Log exact write check error to log (debug)