Quit method bug fix

Calls disconnect() only if the chat socket is initialized.