Coping with network failures