Preserve SSL handshake errors order

Sets are unordered and list with push/pop acts as LIFO, though we need FIFO.
Since the number of elements is tiny, no need to use deque.

Addresses #9120
3 jobs from master in 2 minutes and 22 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #4229
run-pylint

00:01:54

passed #4228
run-test

00:00:18

 
  Build
passed #4230
run-build

00:00:09