Implemented the quit request on the client side