added get_socket method, return ssl_socket_stream (typedef in types.hpp)
fixed support of failed handshakes