fixed Client::distonnect(),

added Client::quitLoop(),
fixed some memory leaks