Fixed|Client: Qt warns about unexpected null when disconnecting

The socket is not created until a connection has been made to a server.