PeerSession::sendDisconnect clear queue before socket check so queue emptied when socket is closed prior to disconnect. add mutexes for start/stop/status and atomic store/load of exit variable.