don't crash on socket error