add log when thread kill