Slightly more robust socket comms