added better exception handling and output, plus SSLv3, TLS1.0-1.2