Merge pull request #1038 from hurtonm/master

CURVE: Implement server-side ERROR handling
Tell the session why the engine has stopped