Better reporting of error for SSL and other network errors