client clean up