Handle invalid cookie rather than die on them