Close the different Thread