Make unauthorized DT instances quit correctly

Fixes first part of #199 
I have no idea why this works. Ideally, something like #165 should be used instead.