Fixed running through connection procedure when canceling editing the security key