Bug fix: only disconnect when client was initialized.