exit after a header location