clean up client initialization