Stop exporting messages if the client goes away.
Note about swallowing client error in message store test.
Merge branch 'feature/issue-871-stop-exporting-messages-when-client-disconnects' into develop