Finish client cleanup code.