Regression test for GitHub issue #1327
Add debug() statements
Runner.prototype.uncaught: don't double-end runnables that already have a state.

Fixes #1327