SMS dit: A principled approach to state failure