Handle auto connect