Also safely set socket.host