Log stopping the thread