Fix bug with server messages being sent from a dead socket that was revived