clean and initialize KCSClient