Javadocs: clarified that timeouts are in milliseconds.
Improved code in case of connection failures: close the connection,
and cancel the connect timeout task.
410840 - Change SSLSession.getPeerCertificateChain() to
SSLSession.getPeerCertificates().