Catch SSL exceptions