add try catch on cookie parsing
Merge pull request #6 from trecouvr/fix-cookie-parsing

add try catch on cookie parsing