Make sure UAS is deleted on correct thread