handle failed requests