consistent and reliable client exit code and information
|Reported by:||Antoine Martin||Owned by:||Scott Bennett|
There can be many reasons why we close a connection.
Unless this is simply a network failure which is an error and should be reported as such (and the client process should terminate with a non-zero exit code), we should generally be able to tell the user why the disconnection occurred.
Most of the code is already there, it just needs to be constified so these values can be relied on.