Safely stop the threads