[fixes #322] don't inform instrumentation of errors until the current
turn is complete.
Fix onerror test