Doc and client cleanup.