Synchronized setting up tunneled connection to avoid not authorized errors