Trying to stop the threads