Add the disconnect command to the factory.
Fix ASSERT in Disconnect.