socket now closes automatically if the recipient peer disconnects