clean up client