make Thread exiting clearer