Handle socket errors in steampurple