finish client close