commented out SSL_DONE wait loop