Socket: detect if remote peer socket has closed before attempting to send data
sockPuppet: terminate client socket if a send attempt returns -1