auto-connect now handles UI close