Add termination after MAX_REDIRECTS