buid client logout