Use main looper and retry when ssh handshake timeout