Additional check to handle BAD SSL_write retry