[TrashCan] fix possible thread crash.