debug mode: don't fail on premature export
Merge pull request #606 from burgerdev/debug-mode-bug

debug mode: don't fail on premature export