SERVER-10968 Improved SSL error handling