Implemented 'quit' command in the server