do stopping of all threads