Stop VNC connection loop when SSH fails