Fix for port scanning with SSL turned on.

Port scans and other quickly closing connections will
result in an unwrapped/disconnected socket.  Tornado
needs to check the ssl socket's _connected attribute
prior to attempting a ssl handshake in this case.