add bandaid for retrying when SSL handshakes fail