Add async and sync destroy thread functions