cleanup server on client exit