Experimental fix for crash(?) on dt exit, found by pmjdebru1jn