Fixed bug with client quitting.