Avoid stack overflow when exception occurs during close.
Report 'expected event arrived too early' via script, not stack trace.
Merge pull request #92 from jfallows/develop

Avoid stack overflow when exception occurs during close.