Close response only in redirector mode and refactor ip