cleaned up client exit