change ssl_connect to SSLStream::connect

implemented SSLStream::disconnect

Also updated test to gracefully disconnect