Correctly implemented auto-restart of the tunnel in case of crash.