refactored exception handling logic for chrome's disabled cookie case