Move initialization via existing socket to this new function and start tor only when it fails. Closes: #33150.