Handle util.format()-style strings in task done()

Also clean up some exit logic.

Fixes #35