better error message when ssl connection fails