Added error handling for TLS handshake
Merge pull request #15 from dotdoom/starttls

Added error handling for TLS handshake