clean up for close client