socket error handling + CSS