Cleaning up client