dump socket connection when lost on client. Fixes #672