when a request fails, see if we've reached the max