DMRECON: shutdown thread cleanly [draft]