Handling the a client quitting