Error state

Now include a column for state transitions to "error", but exclude transitions from "error" to anything else but "deleted".