Clear cookie and token if we receive errors