handle cookie parsing failure gracefully